diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-12-20 22:01:25 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-12-20 22:01:25 +0000 |
commit | 745880f35066bdb1950d0e870608295221346fc5 (patch) | |
tree | 75862ec5918486ac49dedd6ea2e8213b35349f4a /lib/Sema/SemaInit.cpp | |
parent | 947f633616bf2239cf0d03598a85d90f1e36664b (diff) |
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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91796 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaInit.cpp')
-rw-r--r-- | lib/Sema/SemaInit.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Sema/SemaInit.cpp b/lib/Sema/SemaInit.cpp index 44f6cf3d74..18164d685f 100644 --- a/lib/Sema/SemaInit.cpp +++ b/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()) |