mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 11:39:35 +00:00
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(
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user