diff options
author | Chris Lattner <sabre@nondot.org> | 2008-10-26 23:43:26 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-10-26 23:43:26 +0000 |
commit | 07d754acf11590af580bcc4b8816105a60ebb8fe (patch) | |
tree | 826faaa9f03a4d583f6fc74cf49b69879832d94a /clang/lib/Sema/SemaInit.cpp | |
parent | 248388e3131be2fda43387653ced370b6aaf95b2 (diff) | |
download | bcm5719-llvm-07d754acf11590af580bcc4b8816105a60ebb8fe.tar.gz bcm5719-llvm-07d754acf11590af580bcc4b8816105a60ebb8fe.zip |
Remember whether an initlist had a designator in the AST.
llvm-svn: 58218
Diffstat (limited to 'clang/lib/Sema/SemaInit.cpp')
-rw-r--r-- | clang/lib/Sema/SemaInit.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaInit.cpp b/clang/lib/Sema/SemaInit.cpp index 12ca3820dd4..0e627a1aab4 100644 --- a/clang/lib/Sema/SemaInit.cpp +++ b/clang/lib/Sema/SemaInit.cpp @@ -87,7 +87,8 @@ void InitListChecker::CheckImplicitInitList(InitListExpr *ParentIList, // Synthesize an "implicit" InitListExpr (marked by the invalid source locs). InitListExpr *ILE = new InitListExpr(SourceLocation(), &InitExprs[0], InitExprs.size(), - SourceLocation()); + SourceLocation(), + ParentIList->hadDesignators()); ILE->setType(T); // Modify the parent InitListExpr to point to the implicit InitListExpr. |