diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2012-04-13 18:00:54 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-04-13 18:00:54 +0000 |
| commit | 3a5d552cd75e0f9d53d2b268be3571491a5e710e (patch) | |
| tree | 3264266199f7b70e8558b0298c2ee3d40f76897a /clang/lib | |
| parent | 6d3f11142de7f1163f7a94720c75557355844c21 (diff) | |
| download | bcm5719-llvm-3a5d552cd75e0f9d53d2b268be3571491a5e710e.tar.gz bcm5719-llvm-3a5d552cd75e0f9d53d2b268be3571491a5e710e.zip | |
modern objective-c translator: Fixes translation of
__typeof which is a regression by reverting
r154360. // rdar://11233924
llvm-svn: 154679
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Rewrite/RewriteModernObjC.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/Rewrite/RewriteModernObjC.cpp b/clang/lib/Rewrite/RewriteModernObjC.cpp index f0153b38c1d..b783c92dc7c 100644 --- a/clang/lib/Rewrite/RewriteModernObjC.cpp +++ b/clang/lib/Rewrite/RewriteModernObjC.cpp @@ -5357,10 +5357,13 @@ Stmt *RewriteModernObjC::RewriteFunctionBodyOrGlobalInitializer(Stmt *S) { if (CStyleCastExpr *CE = dyn_cast<CStyleCastExpr>(S)) { RewriteCastExpr(CE); } +#if 0 + // FIXME. Cannot safely rewrite ImplicitCasts. This is the 2nd failed + // attempt: (id)((__typeof(z))_Block_copy((const void *)(z))); if (ImplicitCastExpr *ICE = dyn_cast<ImplicitCastExpr>(S)) { RewriteImplicitCastObjCExpr(ICE); } -#if 0 + if (ImplicitCastExpr *ICE = dyn_cast<ImplicitCastExpr>(S)) { CastExpr *Replacement = new (Context) CastExpr(ICE->getType(), ICE->getSubExpr(), |

