[clang] 1c44ace - Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds after ebcbd5ba39c017bb621eefa3175a224aae85ddc8

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 5 16:19:27 PDT 2020


Author: Fangrui Song
Date: 2020-06-05T16:16:49-07:00
New Revision: 1c44ace1e517f8c852fd2bd1d92c6443b525b2e2

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

LOG: Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds after ebcbd5ba39c017bb621eefa3175a224aae85ddc8

Added: 
    

Modified: 
    clang/lib/AST/ExprCXX.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/ExprCXX.cpp b/clang/lib/AST/ExprCXX.cpp
index 2b148b4fa768..3aff2826a1dd 100644
--- a/clang/lib/AST/ExprCXX.cpp
+++ b/clang/lib/AST/ExprCXX.cpp
@@ -1097,6 +1097,7 @@ LambdaExpr::LambdaExpr(QualType T, SourceRange IntroducerRange,
       ExplicitParams(ExplicitParams), ExplicitResultType(ExplicitResultType),
       ClosingBrace(ClosingBrace) {
   CXXRecordDecl *Class = getLambdaClass();
+  (void)Class;
   assert(NumCaptures == Class->capture_size() && "Wrong number of captures");
   assert(CaptureDefault == Class->getLambdaCaptureDefault());
 


        


More information about the cfe-commits mailing list