[llvm] [CodeGen] Use MCRegister for CCState::AllocateReg and CCValAssign::getReg. NFC (PR #106032)

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 26 00:06:57 PDT 2024


================
@@ -116,7 +116,7 @@ static bool f64RetAssign(unsigned ValNo, MVT ValVT, MVT LocVT,
   static const MCPhysReg HiRegList[] = { ARM::R0, ARM::R2 };
   static const MCPhysReg LoRegList[] = { ARM::R1, ARM::R3 };
 
-  unsigned Reg = State.AllocateReg(HiRegList, LoRegList);
+  MCRegister Reg = State.AllocateReg(HiRegList, LoRegList);
   if (Reg == 0)
----------------
s-barannikov wrote:

```suggestion
  if (!Reg)
```

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


More information about the llvm-commits mailing list