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