diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2007-12-07 21:21:21 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2007-12-07 21:21:21 +0000 |
commit | ff6a455c122257c74d8101ee30629d071ac73527 (patch) | |
tree | b18089e18619fe9b2bd6a94c894c04d2c2b1a8d6 /clang/Driver/RewriteTest.cpp | |
parent | 2c20c38cede7b4f27c752858860002191c9038f8 (diff) | |
download | bcm5719-llvm-ff6a455c122257c74d8101ee30629d071ac73527.tar.gz bcm5719-llvm-ff6a455c122257c74d8101ee30629d071ac73527.zip |
Implemented when static typing is combined with protocols and use as receiver
type.
llvm-svn: 44685
Diffstat (limited to 'clang/Driver/RewriteTest.cpp')
-rw-r--r-- | clang/Driver/RewriteTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/Driver/RewriteTest.cpp b/clang/Driver/RewriteTest.cpp index 9c845a44733..2a189ad85b3 100644 --- a/clang/Driver/RewriteTest.cpp +++ b/clang/Driver/RewriteTest.cpp @@ -1446,6 +1446,10 @@ Stmt *RewriteTest::RewriteMessageExpr(ObjCMessageExpr *Exp) { SourceLocation()); MsgExprs.push_back(Unop); } else { + // Remove all type-casts because it may contain objc-style types; e.g. + // Foo<Proto> *. + while (CastExpr *CE = dyn_cast<CastExpr>(recExpr)) + recExpr = CE->getSubExpr(); recExpr = new CastExpr(Context->getObjcIdType(), recExpr, SourceLocation()); MsgExprs.push_back(recExpr); } |