[llvm-branch-commits] [clang] [ExposeObjCDirect] Optimizations (PR #170619)

Oliver Hunt via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Feb 4 20:08:44 PST 2026


================
@@ -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


More information about the llvm-branch-commits mailing list