[cfe-commits] r44169 - /cfe/trunk/Driver/RewriteTest.cpp
Steve Naroff
snaroff at apple.com
Thu Nov 15 02:44:01 PST 2007
Author: snaroff
Date: Thu Nov 15 04:43:57 2007
New Revision: 44169
URL: http://llvm.org/viewvc/llvm-project?rev=44169&view=rev
Log:
Tweak funky cast to accommodate messaging 'super'. This removes any spurious warnings.
Modified:
cfe/trunk/Driver/RewriteTest.cpp
Modified: cfe/trunk/Driver/RewriteTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/RewriteTest.cpp?rev=44169&r1=44168&r2=44169&view=diff
==============================================================================
--- cfe/trunk/Driver/RewriteTest.cpp (original)
+++ cfe/trunk/Driver/RewriteTest.cpp Thu Nov 15 04:43:57 2007
@@ -1229,7 +1229,10 @@
QualType returnType;
// Push 'id' and 'SEL', the 2 implicit arguments.
- ArgTypes.push_back(Context->getObjcIdType());
+ if (MsgSendFlavor == MsgSendSuperFunctionDecl)
+ ArgTypes.push_back(Context->getPointerType(getSuperStructType()));
+ else
+ ArgTypes.push_back(Context->getObjcIdType());
ArgTypes.push_back(Context->getObjcSelType());
if (ObjcMethodDecl *mDecl = Exp->getMethodDecl()) {
// Push any user argument types.
More information about the cfe-commits
mailing list