[llvm] [PowerPC] Use INT64_MAX instead of LONG_MAX. (PR #208249)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 8 09:10:00 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-powerpc

Author: Craig Topper (topperc)

<details>
<summary>Changes</summary>

The value of LONG_MAX is dependent on the host environment used to build the compiler. For example X86-64 Windows has a different value than X86-64 Linux. Using LONG_MAX would give inconsistent results when cross compiling.

I wonder if the test added in #<!-- -->65559 is generating a warning on X86-64 Windows, but the CHECK-NOT doesn't fail because the warning would say 2147483647 instead of 4294967295.

---
Full diff: https://github.com/llvm/llvm-project/pull/208249.diff


1 Files Affected:

- (modified) llvm/lib/Target/PowerPC/PPCFrameLowering.cpp (+2-2) 


``````````diff
The server is unavailable at this time. Please wait a few minutes before you try again.
``````````

</details>


https://github.com/llvm/llvm-project/pull/208249


More information about the llvm-commits mailing list