diff --git a/lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp b/lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp index 716b22e3b37..a12b8d4b771 100644 --- a/lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp +++ b/lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp @@ -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");