[llvm] r233220 - Fix remaining MSVC warning
Andrew Kaylor
andrew.kaylor at intel.com
Wed Mar 25 14:33:24 PDT 2015
Author: akaylor
Date: Wed Mar 25 16:33:24 2015
New Revision: 233220
URL: http://llvm.org/viewvc/llvm-project?rev=233220&view=rev
Log:
Fix remaining MSVC warning
Modified:
llvm/trunk/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
Modified: llvm/trunk/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp?rev=233220&r1=233219&r2=233220&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp (original)
+++ llvm/trunk/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp Wed Mar 25 16:33:24 2015
@@ -637,12 +637,12 @@ void ARMInstPrinter::printAddrMode5Opera
printRegName(O, MO1.getReg());
unsigned ImmOffs = ARM_AM::getAM5Offset(MO2.getImm());
- unsigned Op = ARM_AM::getAM5Op(MO2.getImm());
+ ARM_AM::AddrOpc Op = ARM_AM::getAM5Op(MO2.getImm());
if (AlwaysPrintImm0 || ImmOffs || Op == ARM_AM::sub) {
O << ", "
<< markup("<imm:")
<< "#"
- << ARM_AM::getAddrOpcStr(ARM_AM::getAM5Op(MO2.getImm()))
+ << ARM_AM::getAddrOpcStr(Op)
<< ImmOffs * 4
<< markup(">");
}
More information about the llvm-commits
mailing list