From 6bd2f6ad857949d4dfb6e75e0760c61950b917cf Mon Sep 17 00:00:00 2001 From: Cameron Esfahani Date: Fri, 6 May 2011 21:28:42 +0000 Subject: [PATCH] Fix false positive warning about uninitialized variable. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131019 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGExprCXX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/CGExprCXX.cpp b/lib/CodeGen/CGExprCXX.cpp index eb0e2068db..f6103b6c7a 100644 --- a/lib/CodeGen/CGExprCXX.cpp +++ b/lib/CodeGen/CGExprCXX.cpp @@ -403,7 +403,7 @@ CodeGenFunction::EmitCXXConstructExpr(const CXXConstructExpr *E, E->arg_begin(), E->arg_end()); } else { - CXXCtorType Type; + CXXCtorType Type = Ctor_Complete; bool ForVirtualBase = false; switch (E->getConstructionKind()) { -- 2.40.0