================
@@ -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 =
+ dyn_cast_or_null<ObjCMethodDecl>(CGF.CurCodeDecl)) {
+ const auto *self = curMethod->getSelfDecl();
if (self->getType().isConstQualified()) {
- if (auto LI = dyn_cast<llvm::LoadInst>(receiver->stripPointerCasts())) {
+ if (const auto *LI =
+ dyn_cast<llvm::LoadInst>(receiver->stripPointerCasts())) {
----------------
ojhunt wrote:
unnecessary change
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