[cfe-commits] r53703 - /cfe/trunk/Driver/RewriteObjC.cpp
Steve Naroff
snaroff at apple.com
Wed Jul 16 15:35:27 PDT 2008
Author: snaroff
Date: Wed Jul 16 17:35:27 2008
New Revision: 53703
URL: http://llvm.org/viewvc/llvm-project?rev=53703&view=rev
Log:
RewriteObjC::SynthMessageExpr(): Fix super rewrite (a fairly recent regression).
Fixes <rdar://problem/6046663> clang ObjC rewriter: Regression in handling of 'super' in latest build.
Modified:
cfe/trunk/Driver/RewriteObjC.cpp
Modified: cfe/trunk/Driver/RewriteObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/RewriteObjC.cpp?rev=53703&r1=53702&r2=53703&view=diff
==============================================================================
--- cfe/trunk/Driver/RewriteObjC.cpp (original)
+++ cfe/trunk/Driver/RewriteObjC.cpp Wed Jul 16 17:35:27 2008
@@ -2061,7 +2061,10 @@
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);
More information about the cfe-commits
mailing list