[llvm] f10125b - [SystemZ] Modernize GPRRegs (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 19 07:56:46 PDT 2023
Author: Kazu Hirata
Date: 2023-08-19T07:56:34-07:00
New Revision: f10125b1b8d30684b023b5f7d41bb328b8ea78c7
URL: https://github.com/llvm/llvm-project/commit/f10125b1b8d30684b023b5f7d41bb328b8ea78c7
DIFF: https://github.com/llvm/llvm-project/commit/f10125b1b8d30684b023b5f7d41bb328b8ea78c7.diff
LOG: [SystemZ] Modernize GPRRegs (NFC)
Added:
Modified:
llvm/lib/Target/SystemZ/SystemZMachineFunctionInfo.h
Removed:
################################################################################
diff --git a/llvm/lib/Target/SystemZ/SystemZMachineFunctionInfo.h b/llvm/lib/Target/SystemZ/SystemZMachineFunctionInfo.h
index be7012a37a3d3e..5411b94129a664 100644
--- a/llvm/lib/Target/SystemZ/SystemZMachineFunctionInfo.h
+++ b/llvm/lib/Target/SystemZ/SystemZMachineFunctionInfo.h
@@ -17,10 +17,10 @@ namespace SystemZ {
// A struct to hold the low and high GPR registers to be saved/restored as
// well as the offset into the register save area of the low register.
struct GPRRegs {
- unsigned LowGPR;
- unsigned HighGPR;
- unsigned GPROffset;
- GPRRegs() : LowGPR(0), HighGPR(0), GPROffset(0) {}
+ unsigned LowGPR = 0;
+ unsigned HighGPR = 0;
+ unsigned GPROffset = 0;
+ GPRRegs() = default;
};
}
More information about the llvm-commits
mailing list