diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-01-29 00:45:39 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-01-29 00:45:39 +0000 |
commit | c34ee5ef2b267a683c432ba0c342f7c3a14889d6 (patch) | |
tree | c465ef779277ecf7b661ba260e103b38cd77f613 /lib/Sema/SemaDecl.cpp | |
parent | 6fbdc6bd38cc51232223ae3539c32f23c45ea852 (diff) |
Move InitListChecker out of Sema.h
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63258 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 54f84cf40e..77f99e848f 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -1150,11 +1150,9 @@ bool Sema::CheckInitializerTypes(Expr *&Init, QualType &DeclType, } } - InitListChecker CheckInitList(this, InitList, DeclType); - if (!CheckInitList.HadError()) - Init = CheckInitList.getFullyStructuredList(); - - return CheckInitList.HadError(); + bool hadError = CheckInitList(InitList, DeclType); + Init = InitList; + return hadError; } /// GetNameForDeclarator - Determine the full declaration name for the |