Compute the proper sourcerange for an CompoundLiteralExpr.
llvm-svn: 45504
diff --git a/clang/Driver/RewriteTest.cpp b/clang/Driver/RewriteTest.cpp
index c29241b..bec1332 100644
--- a/clang/Driver/RewriteTest.cpp
+++ b/clang/Driver/RewriteTest.cpp
@@ -1454,7 +1454,8 @@
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 @@
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()),