Tweak funky cast to accommodate messaging 'super'. This removes any spurious warnings.
llvm-svn: 44169
diff --git a/clang/Driver/RewriteTest.cpp b/clang/Driver/RewriteTest.cpp
index ba480c9..5dc3692 100644
--- a/clang/Driver/RewriteTest.cpp
+++ b/clang/Driver/RewriteTest.cpp
@@ -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.