forked from OSchip/llvm-project
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:
parent
bd25998a45
commit
97adf60418
|
|
@ -2061,7 +2061,10 @@ Stmt *RewriteObjC::SynthMessageExpr(ObjCMessageExpr *Exp) {
|
||||||
|
|
||||||
InitExprs.push_back(
|
InitExprs.push_back(
|
||||||
new CastExpr(Context->getObjCIdType(),
|
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;
|
llvm::SmallVector<Expr*, 8> ClsExprs;
|
||||||
QualType argType = Context->getPointerType(Context->CharTy);
|
QualType argType = Context->getPointerType(Context->CharTy);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue