From c9d764a9b8583ae49fcd3efaf338226c9438a193 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@235981 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaLambda.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Sema/SemaLambda.cpp b/lib/Sema/SemaLambda.cpp index 80c6df0dd5..e9c76b643b 100644 --- a/lib/Sema/SemaLambda.cpp +++ b/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.40.0