diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-02-05 06:15:50 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-02-05 06:15:50 +0000 |
commit | 520449d55e5853ca995446988e9be58b0bb3c436 (patch) | |
tree | 9fde365e45279893b2771e0253cbf577beae50e1 /clang/lib/Sema/SemaInit.cpp | |
parent | abd271b4e8cbe6c1ba204ab58a74e086b47eb73d (diff) | |
download | bcm5719-llvm-520449d55e5853ca995446988e9be58b0bb3c436.tar.gz bcm5719-llvm-520449d55e5853ca995446988e9be58b0bb3c436.zip |
Various fixes to mangling of list-initialization.
llvm-svn: 228274
Diffstat (limited to 'clang/lib/Sema/SemaInit.cpp')
-rw-r--r-- | clang/lib/Sema/SemaInit.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaInit.cpp b/clang/lib/Sema/SemaInit.cpp index 089746725f3..1068b3e7e13 100644 --- a/clang/lib/Sema/SemaInit.cpp +++ b/clang/lib/Sema/SemaInit.cpp @@ -640,6 +640,9 @@ InitListChecker::InitListChecker(Sema &S, const InitializedEntity &Entity, InitListExpr *IL, QualType &T, bool VerifyOnly) : SemaRef(S), VerifyOnly(VerifyOnly) { + // FIXME: Check that IL isn't already the semantic form of some other + // InitListExpr. If it is, we'd create a broken AST. + hadError = false; FullyStructuredList = |