erik.pilkington accepted this revision. erik.pilkington added a comment. This revision is now accepted and ready to land.
I thinks this looks good, aside from a null concern. ================ Comment at: lib/CodeGen/CGObjC.cpp:460 + const Expr *SelfInClassMethod = nullptr; + if (const auto *CurMD = dyn_cast<ObjCMethodDecl>(CGF.CurFuncDecl)) + if (CurMD->isClassMethod()) ---------------- I think (?) that CurFuncDecl is nullable, might want to dyn_cast_or_null here. ================ Comment at: lib/CodeGen/CGObjC.cpp:528 ReceiverType = E->getInstanceReceiver()->getType(); + if (auto *OMD = dyn_cast<ObjCMethodDecl>(CurFuncDecl)) + if (OMD->isClassMethod()) ---------------- (ditto) Repository: rC Clang CHANGES SINCE LAST ACTION https://reviews.llvm.org/D62643/new/ https://reviews.llvm.org/D62643 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits