diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-08-29 23:21:31 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-08-29 23:21:31 +0000 |
commit | 97af60b3ae4085d25ea4812c9e7219dba8293c9b (patch) | |
tree | b0c5beb8d1717fb845047fd5019590af686676a2 | |
parent | 4529966d996bfb657a977c67b9bb777e5b244e0f (diff) |
Use static_cast instead of C style cast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55552 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/X86InstrInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/X86/X86InstrInfo.cpp b/lib/Target/X86/X86InstrInfo.cpp index bcbebcd45d..ec40e51481 100644 --- a/lib/Target/X86/X86InstrInfo.cpp +++ b/lib/Target/X86/X86InstrInfo.cpp @@ -2373,7 +2373,8 @@ bool X86InstrInfo::BlockHasNoFallThrough(MachineBasicBlock &MBB) const { bool X86InstrInfo:: ReverseBranchCondition(SmallVectorImpl<MachineOperand> &Cond) const { assert(Cond.size() == 1 && "Invalid X86 branch condition!"); - Cond[0].setImm(GetOppositeBranchCondition((X86::CondCode)Cond[0].getImm())); + X86::CondCode CC = static_cast<X86::CondCode>(Cond[0].getImm()); + Cond[0].setImm(GetOppositeBranchCondition(CC)); return false; } |