[llvm] [AArch64] Replace uses of AArch64::NoRegister with Register() or isValid() NFC (PR #220227)

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 16 06:56:54 PDT 2026


================
@@ -121,8 +121,8 @@ enum LiveRegs : uint8_t {
 /// Holds the virtual registers live physical registers have been saved to.
 struct PhysRegSave {
   LiveRegs PhysLiveRegs;
-  Register StatusFlags = AArch64::NoRegister;
-  Register X0Save = AArch64::NoRegister;
+  Register StatusFlags = Register();
----------------
janr-bay wrote:

Tried it but the defaults are needed later in the file

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


More information about the llvm-commits mailing list