Index: ELF/Arch/PPC64.cpp =================================================================== --- ELF/Arch/PPC64.cpp +++ ELF/Arch/PPC64.cpp @@ -850,7 +850,8 @@ int32_t StackFrameSize = (HiImm * 65536) + LoImm; // Check that the adjusted size doesn't overflow what we can represent with 2 // instructions. - if (StackFrameSize < -2147483648 + Config->SplitStackAdjustSize) { + int32_t MinValue = -2147483648; + if (StackFrameSize < MinValue + Config->SplitStackAdjustSize) { error(getErrorLocation(Loc) + "split-stack prologue adjustment overflows"); return false; }