Skip to content

Commit 0f9b9f8

Browse files
authored
Update SemaLambda.cpp
1 parent cd72b63 commit 0f9b9f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaLambda.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1196,7 +1196,7 @@ void Sema::ActOnLambdaExpressionAfterIntroducer(LambdaIntroducer &Intro,
11961196
// for e.g., [n{0}] { }; <-- if no <initializer_list> is included.
11971197
// FIXME: we should create the init capture variable and mark it invalid
11981198
// in this case.
1199-
if (C->InitCaptureType.get().isNull() && !C->Init.isUsable()) {
1199+
if (C->InitCaptureType.get().isNull() ) {
12001200
Diag(C->Loc, diag::err_invalid_lambda_capture_initializer_type); //
12011201
continue; //
12021202
}

0 commit comments

Comments
 (0)