aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-01-29 00:45:39 +0000
committerDouglas Gregor <dgregor@apple.com>2009-01-29 00:45:39 +0000
commitc34ee5ef2b267a683c432ba0c342f7c3a14889d6 (patch)
treec465ef779277ecf7b661ba260e103b38cd77f613 /lib/Sema/SemaDecl.cpp
parent6fbdc6bd38cc51232223ae3539c32f23c45ea852 (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.cpp8
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