[llvm] [MC] Use MCRegister::id() to avoid implicit casts. NFC (PR #168233)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 15 15:16:28 PST 2025


================
@@ -89,7 +89,7 @@ ArrayRef<MCPhysReg> MCRegisterInfo::getCachedAliasesOf(MCRegister R) const {
     return Aliases;
 
   for (MCRegAliasIteratorImpl It(R, this); It.isValid(); ++It)
-    Aliases.push_back(*It);
+    Aliases.push_back((*It).id());
----------------
topperc wrote:

I think that iterator doesnt have operator-> but I need to check

https://github.com/llvm/llvm-project/pull/168233


More information about the llvm-commits mailing list