Suppress an "unused variable" warning in release build

This commit is contained in:
Mikhail Maltsev 2020-03-10 17:07:46 +00:00
parent a1224432ca
commit 43606efb68
1 changed files with 1 additions and 0 deletions

View File

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