summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaInit.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-12-20 22:01:25 +0000
committerDouglas Gregor <dgregor@apple.com>2009-12-20 22:01:25 +0000
commit39c778b44348c530ef7487915f60e823d2fbc383 (patch)
treeb393891a51975dc24e935416913b4ea3dbe59fd0 /clang/lib/Sema/SemaInit.cpp
parent1b6d10555ff70efcc44b8bf25d4755d88a15d48c (diff)
downloadbcm5719-llvm-39c778b44348c530ef7487915f60e823d2fbc383.tar.gz
bcm5719-llvm-39c778b44348c530ef7487915f60e823d2fbc383.zip
Switch default-initialization of variables of class type (or array thereof) over to InitializationSequence. I could swear that this fixes a PR somewhere, but I couldn't figure out which one
llvm-svn: 91796
Diffstat (limited to 'clang/lib/Sema/SemaInit.cpp')
-rw-r--r--clang/lib/Sema/SemaInit.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaInit.cpp b/clang/lib/Sema/SemaInit.cpp
index 44f6cf3d74c..18164d685f6 100644
--- a/clang/lib/Sema/SemaInit.cpp
+++ b/clang/lib/Sema/SemaInit.cpp
@@ -3391,7 +3391,8 @@ InitializationSequence::Perform(Sema &S,
return S.ExprError();
// Build the an expression that constructs a temporary.
- CurInit = S.BuildCXXConstructExpr(Loc, Step->Type, Constructor,
+ CurInit = S.BuildCXXConstructExpr(Loc, Entity.getType().getType(),
+ Constructor,
move_arg(ConstructorArgs),
ConstructorInitRequiresZeroInit);
if (CurInit.isInvalid())
OpenPOWER on IntegriCloud