Use static_cast instead of C style cast.

llvm-svn: 55552
This commit is contained in:
Evan Cheng 2008-08-29 23:21:31 +00:00
parent 894be333f1
commit f93bc7f755
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}