[llvm] Fix stack layout for frames larger than 2gb (PR #84114)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 8 01:49:34 PST 2024
================
@@ -1419,7 +1419,7 @@ class DarwinX86AsmBackend : public X86AsmBackend {
unsigned Reg = *MRI.getLLVMRegNum(Inst.getRegister(), true);
SavedRegs[SavedRegIdx++] = Reg;
StackAdjust += OffsetSize;
- MinAbsOffset = std::min(MinAbsOffset, abs(Inst.getOffset()));
+ MinAbsOffset = std::min<int64_t>(MinAbsOffset, llabs(Inst.getOffset()));
----------------
RKSimon wrote:
is it necessary to use llabs?
https://github.com/llvm/llvm-project/pull/84114
More information about the llvm-commits
mailing list