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/Driver/RewriteObjC.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/Driver/RewriteObjC.cpp')
-rw-r--r-- | clang/Driver/RewriteObjC.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/Driver/RewriteObjC.cpp b/clang/Driver/RewriteObjC.cpp index 3e8216e6679..b62b5fa2372 100644 --- a/clang/Driver/RewriteObjC.cpp +++ b/clang/Driver/RewriteObjC.cpp @@ -2123,8 +2123,9 @@ Stmt *RewriteObjC::SynthMessageExpr(ObjCMessageExpr *Exp) { // (struct objc_super) { <exprs from above> } InitListExpr *ILE = new InitListExpr(SourceLocation(), &InitExprs[0], InitExprs.size(), - SourceLocation()); - SuperRep = new CompoundLiteralExpr(SourceLocation(), superType, ILE, false); + SourceLocation(), false); + SuperRep = new CompoundLiteralExpr(SourceLocation(), superType, ILE, + false); } // struct objc_super * Expr *Unop = new UnaryOperator(SuperRep, UnaryOperator::AddrOf, @@ -2189,7 +2190,7 @@ Stmt *RewriteObjC::SynthMessageExpr(ObjCMessageExpr *Exp) { // (struct objc_super) { <exprs from above> } InitListExpr *ILE = new InitListExpr(SourceLocation(), &InitExprs[0], InitExprs.size(), - SourceLocation()); + SourceLocation(), false); SuperRep = new CompoundLiteralExpr(SourceLocation(), superType, ILE, false); } // struct objc_super * |