================
@@ -397,10 +397,12 @@ bool CGObjCRuntime::canMessageReceiverBeNull(
// If we're emitting a method, and self is const (meaning just ARC, for now),
// and the receiver is a load of self, then self is a valid object.
- if (auto curMethod = dyn_cast_or_null<ObjCMethodDecl>(CGF.CurCodeDecl)) {
- auto self = curMethod->getSelfDecl();
+ if (const auto *curMethod =
----------------
ojhunt wrote:
Given you're changing this, can you update to match current coding style: `auto
*CurMethod`?
https://github.com/llvm/llvm-project/pull/170619
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits