RewriteObjC::SynthMessageExpr(): Fix super rewrite (a fairly recent regression).

Fixes <rdar://problem/6046663> clang ObjC rewriter: Regression in handling of 'super' in latest build.

llvm-svn: 53703
This commit is contained in:
Steve Naroff 2008-07-16 22:35:27 +00:00
parent bd25998a45
commit 97adf60418
1 changed files with 4 additions and 1 deletions

View File

@ -2061,7 +2061,10 @@ Stmt *RewriteObjC::SynthMessageExpr(ObjCMessageExpr *Exp) {
InitExprs.push_back(
new CastExpr(Context->getObjCIdType(),
recExpr, SourceLocation())); // set the 'receiver'.
new DeclRefExpr(CurMethodDecl->getSelfDecl(),
Context->getObjCIdType(),
SourceLocation()),
SourceLocation())); // set the 'receiver'.
llvm::SmallVector<Expr*, 8> ClsExprs;
QualType argType = Context->getPointerType(Context->CharTy);