diff options
author | Anders Carlsson <andersca@mac.com> | 2009-05-27 16:10:08 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-05-27 16:10:08 +0000 |
commit | 2078bb9c9336da56ea521e98e718556b227541f6 (patch) | |
tree | 0ee07f97dff1d6d12aede9f24cb431e3e4f4bef4 /lib/Sema/SemaDecl.cpp | |
parent | 50c39ea4858265f3f5f42a0c624557ce2281936b (diff) |
Create CXXConstructExprs when constructing via copy initialization.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72474 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 4149fa4c9a..5e09851770 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -2562,7 +2562,7 @@ void Sema::AddInitializerToDecl(DeclPtrTy dcl, ExprArg init, bool DirectInit) { VDecl->setInvalidDecl(); } else if (!VDecl->isInvalidDecl()) { if (CheckInitializerTypes(Init, DclT, VDecl->getLocation(), - VDecl->getDeclName(), DirectInit)) + VDecl->getDeclName(), DirectInit, VDecl)) VDecl->setInvalidDecl(); // C++ 3.6.2p2, allow dynamic initialization of static initializers. |