]> granicus.if.org Git - clang/commitdiff
Tweak funky cast to accommodate messaging 'super'. This removes any spurious warnings.
authorSteve Naroff <snaroff@apple.com>
Thu, 15 Nov 2007 10:43:57 +0000 (10:43 +0000)
committerSteve Naroff <snaroff@apple.com>
Thu, 15 Nov 2007 10:43:57 +0000 (10:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44169 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/RewriteTest.cpp

index ba480c9e25e6f4fd8ea71a1fa22c005b4a896fe0..5dc36923fcb4c266edb6d097db2a136ecb37e828 100644 (file)
@@ -1229,7 +1229,10 @@ Stmt *RewriteTest::RewriteMessageExpr(ObjCMessageExpr *Exp) {
   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.