ARM: ignore unused variable to fix -Wunused-variable builds
authorSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 13 Mar 2014 07:15:45 +0000 (07:15 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 13 Mar 2014 07:15:45 +0000 (07:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203765 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp

index 716b22e3b3761156e55f9b3a5d99acbd9d8a5865..a12b8d4b771fecc2797354e5c95908d624c4d0ba 100644 (file)
@@ -279,6 +279,7 @@ public:
     } else if (MO.isExpr()) {
       int64_t Value;
       bool Invalid = MO.getExpr()->EvaluateAsAbsolute(Value);
+      (void) Invalid;
       assert(!Invalid && "non-constant expression is not a valid SOImm operand");
       assert((Value >= INT32_MIN && Value <= INT32_MAX) &&
              "expression must be representable in 32 bits");