Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds after ebcbd5ba39c017bb62...
authorFangrui Song <maskray@google.com>
Fri, 5 Jun 2020 23:16:49 +0000 (16:16 -0700)
committerFangrui Song <maskray@google.com>
Fri, 5 Jun 2020 23:16:49 +0000 (16:16 -0700)
clang/lib/AST/ExprCXX.cpp

index 2b148b4..3aff282 100644 (file)
@@ -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());