diff --git a/clang/include/clang/Sema/DeclSpec.h b/clang/include/clang/Sema/DeclSpec.h index 4a5d714580397..ff5e2e2e57366 100644 --- a/clang/include/clang/Sema/DeclSpec.h +++ b/clang/include/clang/Sema/DeclSpec.h @@ -2769,11 +2769,10 @@ struct LambdaIntroducer { SourceRange Range; SourceLocation DefaultLoc; - LambdaCaptureDefault Default; + LambdaCaptureDefault Default = LCD_None; SmallVector Captures; - LambdaIntroducer() - : Default(LCD_None) {} + LambdaIntroducer() = default; bool hasLambdaCapture() const { return Captures.size() > 0 || Default != LCD_None;