summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprCXX.cpp
diff options
context:
space:
mode:
authorCameron Esfahani <dirty@apple.com>2011-05-06 21:28:42 +0000
committerCameron Esfahani <dirty@apple.com>2011-05-06 21:28:42 +0000
commitbceca20ab989c8ff0e867e1cd927c26f6427c8e3 (patch)
tree0fd932eaed1cd0203a70317e26122cd9d021f5a8 /clang/lib/CodeGen/CGExprCXX.cpp
parent83dc3e89c35f249e5a7684604133ac495ff9ac66 (diff)
downloadbcm5719-llvm-bceca20ab989c8ff0e867e1cd927c26f6427c8e3.tar.gz
bcm5719-llvm-bceca20ab989c8ff0e867e1cd927c26f6427c8e3.zip
Fix false positive warning about uninitialized variable.
llvm-svn: 131019
Diffstat (limited to 'clang/lib/CodeGen/CGExprCXX.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprCXX.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprCXX.cpp b/clang/lib/CodeGen/CGExprCXX.cpp
index eb0e2068dbe..f6103b6c7aa 100644
--- a/clang/lib/CodeGen/CGExprCXX.cpp
+++ b/clang/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()) {
OpenPOWER on IntegriCloud