[llvm] Fix stack layout for frames larger than 2gb (PR #84114)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 7 02:41:18 PST 2024


================
@@ -280,7 +280,7 @@ class MachineFrameInfo {
   /// setup/destroy pseudo instructions (as defined in the TargetFrameInfo
   /// class).  This information is important for frame pointer elimination.
   /// It is only valid during and after prolog/epilog code insertion.
-  unsigned MaxCallFrameSize = ~0u;
+  uint64_t MaxCallFrameSize = ~0ul;
----------------
RKSimon wrote:

Better to use `~UINT64_C(0)` to avoid any long vs long long issues

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


More information about the llvm-commits mailing list