From d1c6916327d622f78d6dad123b1305b2b69d0551 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Tue, 28 Apr 2015 12:36:54 +0000 Subject: [PATCH] Silencing a spurious -Wuninitialized warning with this local; NFC. llvm-svn: 235981 --- clang/lib/Sema/SemaLambda.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Sema/SemaLambda.cpp b/clang/lib/Sema/SemaLambda.cpp index 80c6df0..e9c76b6 100644 --- a/clang/lib/Sema/SemaLambda.cpp +++ b/clang/lib/Sema/SemaLambda.cpp @@ -1482,7 +1482,7 @@ ExprResult Sema::BuildLambdaExpr(SourceLocation StartLoc, SourceLocation EndLoc, // Collect information from the lambda scope. SmallVector Captures; SmallVector CaptureInits; - LambdaCaptureDefault CaptureDefault; + LambdaCaptureDefault CaptureDefault = LCD_None; SourceLocation CaptureDefaultLoc; CXXRecordDecl *Class; CXXMethodDecl *CallOperator; -- 2.7.4