Index: clang/lib/ARCMigrate/ObjCMT.cpp =================================================================== --- clang/lib/ARCMigrate/ObjCMT.cpp +++ clang/lib/ARCMigrate/ObjCMT.cpp @@ -1056,10 +1056,10 @@ T = TD->getDecl()->getUnderlyingType(); if (OrigT == T || !T->isPointerType()) return true; - const PointerType* PT = T->getAs(); + const PointerType *PT = T->castAs(); QualType UPointeeT = PT->getPointeeType().getUnqualifiedType(); if (UPointeeT->isRecordType()) { - const RecordType *RecordTy = UPointeeT->getAs(); + const RecordType *RecordTy = UPointeeT->castAs(); if (!RecordTy->getDecl()->isCompleteDefinition()) return false; }