Suppress an "unused variable" warning in release build
authorMikhail Maltsev <mikhail.maltsev@arm.com>
Tue, 10 Mar 2020 17:07:46 +0000 (17:07 +0000)
committerMikhail Maltsev <mikhail.maltsev@arm.com>
Tue, 10 Mar 2020 17:10:52 +0000 (17:10 +0000)
clang/lib/Sema/SemaChecking.cpp

index 24d0d92..8a2b4b0 100644 (file)
@@ -2094,6 +2094,7 @@ bool Sema::CheckARMCoprocessorImmediate(const Expr *CoprocArg, bool WantCDE) {
 
   llvm::APSInt CoprocNoAP;
   bool IsICE = CoprocArg->isIntegerConstantExpr(CoprocNoAP, Context);
+  (void)IsICE;
   assert(IsICE && "Coprocossor immediate is not a constant expression");
   int64_t CoprocNo = CoprocNoAP.getExtValue();
   assert(CoprocNo >= 0 && "Coprocessor immediate must be non-negative");