From 59ad1e3f574a33f2a2d3a1d80a1a22b657deba09 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Mon, 3 Oct 2011 06:36:45 +0000 Subject: ArrayRef'ize ObjCMessageExpr llvm-svn: 140986 --- clang/lib/Rewrite/RewriteObjC.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'clang/lib/Rewrite/RewriteObjC.cpp') diff --git a/clang/lib/Rewrite/RewriteObjC.cpp b/clang/lib/Rewrite/RewriteObjC.cpp index dcb3e602c05..a62f4aa6229 100644 --- a/clang/lib/Rewrite/RewriteObjC.cpp +++ b/clang/lib/Rewrite/RewriteObjC.cpp @@ -1316,8 +1316,6 @@ Stmt *RewriteObjC::RewritePropertyOrImplicitSetter(BinaryOperator *BinOp, Expr * } assert(OMD && "RewritePropertyOrImplicitSetter - null OMD"); - SmallVector ExprVec; - ExprVec.push_back(newStmt); ObjCMessageExpr *MsgExpr; if (Super) @@ -1329,7 +1327,7 @@ Stmt *RewriteObjC::RewritePropertyOrImplicitSetter(BinaryOperator *BinOp, Expr * /*IsInstanceSuper=*/true, SuperTy, Sel, SelectorLoc, OMD, - &ExprVec[0], 1, + newStmt, /*FIXME:*/SourceLocation()); else { // FIXME. Refactor this into common code with that in @@ -1346,7 +1344,7 @@ Stmt *RewriteObjC::RewritePropertyOrImplicitSetter(BinaryOperator *BinOp, Expr * /*FIXME: */SourceLocation(), cast(Receiver), Sel, SelectorLoc, OMD, - &ExprVec[0], 1, + newStmt, /*FIXME:*/SourceLocation()); } Stmt *ReplacingStmt = SynthMessageExpr(MsgExpr); @@ -1405,7 +1403,7 @@ Stmt *RewriteObjC::RewritePropertyOrImplicitGetter(Expr *PropOrGetterRefExpr) { /*IsInstanceSuper=*/true, SuperTy, Sel, SelectorLoc, OMD, - 0, 0, + ArrayRef(), PropOrGetterRefExpr->getLocEnd()); else { assert (Receiver && "RewritePropertyOrImplicitGetter - Receiver is null"); @@ -1419,7 +1417,7 @@ Stmt *RewriteObjC::RewritePropertyOrImplicitGetter(Expr *PropOrGetterRefExpr) { PropOrGetterRefExpr->getLocStart(), cast(Receiver), Sel, SelectorLoc, OMD, - 0, 0, + ArrayRef(), PropOrGetterRefExpr->getLocEnd()); } -- cgit v1.2.3