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:
825e3bb
)
Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds after ebcbd5ba39c017bb62...
author
Fangrui Song
<maskray@google.com>
Fri, 5 Jun 2020 23:16:49 +0000
(16:16 -0700)
committer
Fangrui Song
<maskray@google.com>
Fri, 5 Jun 2020 23:16:49 +0000
(16:16 -0700)
clang/lib/AST/ExprCXX.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/AST/ExprCXX.cpp
b/clang/lib/AST/ExprCXX.cpp
index
2b148b4
..
3aff282
100644
(file)
--- 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());