diff options
author | Steve Naroff <snaroff@apple.com> | 2007-11-15 10:43:57 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2007-11-15 10:43:57 +0000 |
commit | c3a438c39ca6061965007c273727f27dfaa4a694 (patch) | |
tree | 5aa17ea3703119b377e5daa5cd1a53f8d35732d7 /Driver/RewriteTest.cpp | |
parent | 874e232a0d5e179197de860e6dfa3e99cd42ad30 (diff) |
Tweak funky cast to accommodate messaging 'super'. This removes any spurious warnings.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44169 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/RewriteTest.cpp')
-rw-r--r-- | Driver/RewriteTest.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Driver/RewriteTest.cpp b/Driver/RewriteTest.cpp index ba480c9e25..5dc36923fc 100644 --- a/Driver/RewriteTest.cpp +++ b/Driver/RewriteTest.cpp @@ -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. |