r235981 - Silencing a spurious -Wuninitialized warning with this local; NFC.

Aaron Ballman aaron at aaronballman.com
Tue Apr 28 05:36:55 PDT 2015


Author: aaronballman
Date: Tue Apr 28 07:36:54 2015
New Revision: 235981

URL: http://llvm.org/viewvc/llvm-project?rev=235981&view=rev
Log:
Silencing a spurious -Wuninitialized warning with this local; NFC.

Modified:
    cfe/trunk/lib/Sema/SemaLambda.cpp

Modified: cfe/trunk/lib/Sema/SemaLambda.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaLambda.cpp?rev=235981&r1=235980&r2=235981&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaLambda.cpp (original)
+++ cfe/trunk/lib/Sema/SemaLambda.cpp Tue Apr 28 07:36:54 2015
@@ -1482,7 +1482,7 @@ ExprResult Sema::BuildLambdaExpr(SourceL
   // Collect information from the lambda scope.
   SmallVector<LambdaCapture, 4> Captures;
   SmallVector<Expr *, 4> CaptureInits;
-  LambdaCaptureDefault CaptureDefault;
+  LambdaCaptureDefault CaptureDefault = LCD_None;
   SourceLocation CaptureDefaultLoc;
   CXXRecordDecl *Class;
   CXXMethodDecl *CallOperator;





More information about the cfe-commits mailing list