diff options
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/Frontend/RewriteObjC.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/clang/lib/Frontend/RewriteObjC.cpp b/clang/lib/Frontend/RewriteObjC.cpp index e473adbf9e7..fbd68569ff6 100644 --- a/clang/lib/Frontend/RewriteObjC.cpp +++ b/clang/lib/Frontend/RewriteObjC.cpp @@ -1213,8 +1213,7 @@ Stmt *RewriteObjC::RewriteObjCIvarRefExpr(ObjCIvarRefExpr *IV, ObjCIvarDecl *D = IV->getDecl(); const Expr *BaseExpr = IV->getBase(); if (CurMethodDef) { - if (BaseExpr->getType()->isObjCObjectPointerType() && - isa<DeclRefExpr>(BaseExpr)) { + if (BaseExpr->getType()->isObjCObjectPointerType()) { ObjCInterfaceType *iFaceDecl = dyn_cast<ObjCInterfaceType>(BaseExpr->getType()->getPointeeType()); // lookup which class implements the instance variable. @@ -4308,18 +4307,6 @@ void RewriteObjC::RewriteCastExpr(CStyleCastExpr *CE) { TypeAsString.c_str(), TypeAsString.size()); return; } - if (LangOpts.Microsoft && QT->isObjCObjectPointerType()) { - if (isa<ObjCInterfaceType>(QT->getPointeeType())) { - QualType ptee = QT->getAs<ObjCObjectPointerType>()->getPointeeType(); - std::string TypeAsString = "(struct "; - TypeAsString += ptee.getAsString(); - TypeAsString += "_IMPL *"; - TypeAsString += ")"; - ReplaceText(LocStart, endBuf-startBuf+1, - TypeAsString.c_str(), TypeAsString.size()); - return; - } - } // advance the location to startArgList. const char *argPtr = startBuf; |