[llvm] [LLVM] [MC] Update frame layout & CFI generation to handle frames larger than 2gb (PR #99263)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 22 13:52:47 PDT 2024


================
@@ -294,7 +294,7 @@ void MSP430FrameLowering::emitEpilogue(MachineFunction &MF,
 
   if (!hasFP(MF)) {
     MBBI = FirstCSPop;
-    int64_t Offset = -CSSize - 2;
+    int64_t Offset = -((int64_t)CSSize) - 2;
----------------
MaskRay wrote:

one layer of parentheses can be removed

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


More information about the llvm-commits mailing list