diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-02 21:46:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-02 21:46:24 +0000 |
commit | 0fc53dfc7a33f68e71ef245389c4e7cd34a62a39 (patch) | |
tree | 5f0c1e06a919cac5a6ca9224ebadb5c17646b477 /Driver/RewriteTest.cpp | |
parent | 41bc5cda96a8893e12d2750779e307ae92da4be6 (diff) |
Compute the proper sourcerange for an CompoundLiteralExpr.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45504 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/RewriteTest.cpp')
-rw-r--r-- | Driver/RewriteTest.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Driver/RewriteTest.cpp b/Driver/RewriteTest.cpp index c29241bd07..bec1332ec5 100644 --- a/Driver/RewriteTest.cpp +++ b/Driver/RewriteTest.cpp @@ -1454,7 +1454,8 @@ Stmt *RewriteTest::RewriteMessageExpr(ObjCMessageExpr *Exp) { InitListExpr *ILE = new InitListExpr(SourceLocation(), &InitExprs[0], InitExprs.size(), SourceLocation()); - CompoundLiteralExpr *SuperRep = new CompoundLiteralExpr(superType, ILE); + CompoundLiteralExpr *SuperRep = new CompoundLiteralExpr(SourceLocation(), + superType, ILE); // struct objc_super * Expr *Unop = new UnaryOperator(SuperRep, UnaryOperator::AddrOf, Context->getPointerType(SuperRep->getType()), @@ -1506,7 +1507,8 @@ Stmt *RewriteTest::RewriteMessageExpr(ObjCMessageExpr *Exp) { InitListExpr *ILE = new InitListExpr(SourceLocation(), &InitExprs[0], InitExprs.size(), SourceLocation()); - CompoundLiteralExpr *SuperRep = new CompoundLiteralExpr(superType, ILE); + CompoundLiteralExpr *SuperRep = new CompoundLiteralExpr(SourceLocation(), + superType, ILE); // struct objc_super * Expr *Unop = new UnaryOperator(SuperRep, UnaryOperator::AddrOf, Context->getPointerType(SuperRep->getType()), |