aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2011-03-24 22:05:48 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2011-03-24 22:05:48 +0000
commit1866af4a982be999e4d0c08c38ebec71f3ed4025 (patch)
tree285560977d29b9084a46c4caa936ce4779a05f99 /lib/Target/ARM/AsmParser/ARMAsmParser.cpp
parentc39b6271be255a88fc9481d10894899b0f747ee3 (diff)
Suppress an unused variable warning in -asserts builds
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128244 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/AsmParser/ARMAsmParser.cpp')
-rw-r--r--lib/Target/ARM/AsmParser/ARMAsmParser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index 755b9afa24..d473596625 100644
--- a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@ -460,6 +460,7 @@ public:
Inst.addOperand(MCOperand::CreateReg(getMemBaseRegNum()));
const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getMemOffset());
+ (void)CE;
assert((CE || CE->getValue() == 0) &&
"No offset operand support in mode 7");
}