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/SemaInit.cpp | |
parent | def11996fb558f58a8a7ae87aa95eb0bb96bfe4a (diff) |
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/SemaInit.cpp')
-rw-r--r-- | lib/Sema/SemaInit.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/Sema/SemaInit.cpp b/lib/Sema/SemaInit.cpp index 6f71e1b3f7..20c712fa29 100644 --- a/lib/Sema/SemaInit.cpp +++ b/lib/Sema/SemaInit.cpp @@ -119,8 +119,7 @@ static void CheckStringInit(Expr *Str, QualType &DeclT, Sema &S) { bool Sema::CheckInitializerTypes(Expr *&Init, QualType &DeclType, SourceLocation InitLoc, - DeclarationName InitEntity, - bool DirectInit, VarDecl *VD) { + DeclarationName InitEntity, bool DirectInit) { if (DeclType->isDependentType() || Init->isTypeDependent() || Init->isValueDependent()) return false; @@ -175,10 +174,8 @@ bool Sema::CheckInitializerTypes(Expr *&Init, QualType &DeclType, if (!Constructor) return true; - // FIXME: What do do if VD is null here? - if (VD) - Init = CXXConstructExpr::Create(Context, VD, DeclType, Constructor, - false, &Init, 1); + Init = CXXConstructExpr::Create(Context, 0, DeclType, Constructor, + false, &Init, 1); return false; } |