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 | 44864e48bd7f4736f90402658268d139a49cc207 (patch) | |
tree | 12b3de754879a7ea92f9ef33d455d66e0c04d620 /clang/Driver/RewriteTest.cpp | |
parent | 7fa2f040f330bad140688749dab720220f7071fd (diff) | |
download | bcm5719-llvm-44864e48bd7f4736f90402658268d139a49cc207.tar.gz bcm5719-llvm-44864e48bd7f4736f90402658268d139a49cc207.zip |
Tweak funky cast to accommodate messaging 'super'. This removes any spurious warnings.
llvm-svn: 44169
Diffstat (limited to 'clang/Driver/RewriteTest.cpp')
-rw-r--r-- | clang/Driver/RewriteTest.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/Driver/RewriteTest.cpp b/clang/Driver/RewriteTest.cpp index ba480c9e25e..5dc36923fcb 100644 --- a/clang/Driver/RewriteTest.cpp +++ b/clang/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. |