From bdf50f029232d30e820dfc222bee8eecd3945155 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Thu, 6 Mar 2025 08:56:47 -0800 Subject: [CodeGen] Use Register or MCRegister. NFC --- llvm/lib/CodeGen/LocalStackSlotAllocation.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'llvm/lib/CodeGen/LocalStackSlotAllocation.cpp') diff --git a/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp b/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp index 0e9f041f7bfd..987f64f56403 100644 --- a/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp +++ b/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp @@ -287,13 +287,11 @@ void LocalStackSlotImpl::calculateFrameObjectOffsets(MachineFunction &Fn) { MFI.setLocalFrameMaxAlign(MaxAlign); } -static inline bool -lookupCandidateBaseReg(unsigned BaseReg, - int64_t BaseOffset, - int64_t FrameSizeAdjust, - int64_t LocalFrameOffset, - const MachineInstr &MI, - const TargetRegisterInfo *TRI) { +static inline bool lookupCandidateBaseReg(Register BaseReg, int64_t BaseOffset, + int64_t FrameSizeAdjust, + int64_t LocalFrameOffset, + const MachineInstr &MI, + const TargetRegisterInfo *TRI) { // Check if the relative offset from the where the base register references // to the target address is in range for the instruction. int64_t Offset = FrameSizeAdjust + LocalFrameOffset - BaseOffset; -- cgit v1.2.3