Author: Simon Pilgrim
Date: 2020-03-12T18:52:59Z
New Revision: 1ef0d66343d64ca89d02083fd1f5b1323703bf65

URL: 
https://github.com/llvm/llvm-project/commit/1ef0d66343d64ca89d02083fd1f5b1323703bf65
DIFF: 
https://github.com/llvm/llvm-project/commit/1ef0d66343d64ca89d02083fd1f5b1323703bf65.diff

LOG: Fix unused variable warning. NFCI.

Added: 
    

Modified: 
    clang/lib/AST/ExprConstant.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp
index 1028ab96bfd2..5bb9fc319d48 100644
--- a/clang/lib/AST/ExprConstant.cpp
+++ b/clang/lib/AST/ExprConstant.cpp
@@ -3607,6 +3607,7 @@ static CompleteObject findCompleteObject(EvalInfo &Info, 
const Expr *E,
     /// Nested immediate invocation have been previously removed so if we found
     /// a ConstantExpr it can only be the EvaluatingDecl.
     assert(CE->isImmediateInvocation() && CE == Info.EvaluatingDecl);
+    (void)CE;
     BaseVal = Info.EvaluatingDeclValue;
   } else if (const ValueDecl *D = LVal.Base.dyn_cast<const ValueDecl *>()) {
     // In C++98, const, non-volatile integers initialized with ICEs are ICEs.


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to