[llvm-branch-commits] [llvm-branch] r164523 - /llvm/branches/R600/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
Tom Stellard
thomas.stellard at amd.com
Mon Sep 24 08:54:03 PDT 2012
Author: tstellar
Date: Mon Sep 24 10:52:22 2012
New Revision: 164523
URL: http://llvm.org/viewvc/llvm-project?rev=164523&view=rev
Log:
ARMInstPrinter.cpp: Fix a warning in -Asserts. [-Wunused-variable]
Modified:
llvm/branches/R600/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
Modified: llvm/branches/R600/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/R600/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp?rev=164523&r1=164522&r2=164523&view=diff
==============================================================================
--- llvm/branches/R600/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp (original)
+++ llvm/branches/R600/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp Mon Sep 24 10:52:22 2012
@@ -362,10 +362,12 @@
return;
}
+#ifndef NDEBUG
const MCOperand &MO3 = MI->getOperand(Op+2);
unsigned IdxMode = ARM_AM::getAM2IdxMode(MO3.getImm());
assert(IdxMode != ARMII::IndexModePost &&
"Should be pre or offset index op");
+#endif
printAM2PreOrOffsetIndexOp(MI, Op, O);
}
More information about the llvm-branch-commits
mailing list