diff options
Diffstat (limited to 'lib/ARCMigrate/TransGCCalls.cpp')
-rw-r--r-- | lib/ARCMigrate/TransGCCalls.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/ARCMigrate/TransGCCalls.cpp b/lib/ARCMigrate/TransGCCalls.cpp index 94e965df18..7c0819a677 100644 --- a/lib/ARCMigrate/TransGCCalls.cpp +++ b/lib/ARCMigrate/TransGCCalls.cpp @@ -27,13 +27,15 @@ class GCCollectableCallsChecker : public: GCCollectableCallsChecker(MigrationContext &ctx, ParentMap &map) : MigrateCtx(ctx), PMap(map) { - IdentifierTable &Ids = MigrateCtx.getPass().Ctx.Idents; + IdentifierTable &Ids = MigrateCtx.Pass.Ctx.Idents; NSMakeCollectableII = &Ids.get("NSMakeCollectable"); CFMakeCollectableII = &Ids.get("CFMakeCollectable"); } + bool shouldWalkTypesOfTypeLocs() const { return false; } + bool VisitCallExpr(CallExpr *E) { - TransformActions &TA = MigrateCtx.getPass().TA; + TransformActions &TA = MigrateCtx.Pass.TA; if (MigrateCtx.isGCOwnedNonObjC(E->getType())) { TA.reportError("call returns pointer to GC managed memory; " |