diff options
| author | Anders Carlsson <andersca@mac.com> | 2009-05-30 20:41:30 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2009-05-30 20:41:30 +0000 |
| commit | 0f5f2c669e435a31eca9ca2f09fd8917ee11664e (patch) | |
| tree | 6cf448eb6af7aaeeb439a716d9debc31099a8534 /lib/Sema/SemaDecl.cpp | |
| parent | def11996fb558f58a8a7ae87aa95eb0bb96bfe4a (diff) | |
| download | clang-0f5f2c669e435a31eca9ca2f09fd8917ee11664e.tar.gz clang-0f5f2c669e435a31eca9ca2f09fd8917ee11664e.tar.bz2 clang-0f5f2c669e435a31eca9ca2f09fd8917ee11664e.tar.xz | |
Remove VarDecl from CheckInitializerTypes now that CXXConstructExpr doesn't need to take a VarDecl anymore. (It still does, but it won't for long)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72630 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 550a1441ac..3ea0b41622 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -2551,7 +2551,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)) + VDecl->getDeclName(), DirectInit)) VDecl->setInvalidDecl(); // C++ 3.6.2p2, allow dynamic initialization of static initializers. |
