projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a122443
)
Suppress an "unused variable" warning in release build
author
Mikhail Maltsev
<mikhail.maltsev@arm.com>
Tue, 10 Mar 2020 17:07:46 +0000
(17:07 +0000)
committer
Mikhail Maltsev
<mikhail.maltsev@arm.com>
Tue, 10 Mar 2020 17:10:52 +0000
(17:10 +0000)
clang/lib/Sema/SemaChecking.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Sema/SemaChecking.cpp
b/clang/lib/Sema/SemaChecking.cpp
index
24d0d92
..
8a2b4b0
100644
(file)
--- a/
clang/lib/Sema/SemaChecking.cpp
+++ b/
clang/lib/Sema/SemaChecking.cpp
@@
-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");