[llvm] [LLVM] [MC] Update frame layout & CFI generation to handle frames larger than 2gb (PR #99263)
Wesley Wiser via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 23 07:00:21 PDT 2024
================
@@ -619,44 +619,44 @@ class MCCFIInstruction {
/// .cfi_window_save SPARC register window is saved.
static MCCFIInstruction createWindowSave(MCSymbol *L, SMLoc Loc = {}) {
- return MCCFIInstruction(OpWindowSave, L, 0, 0, Loc);
+ return MCCFIInstruction(OpWindowSave, L, 0, INT64_C(0), Loc);
----------------
wesleywiser wrote:
Looks like that doesn't work on Windows:
```
C:\ws\src\llvm\include\llvm/MC/MCDwarf.h(622): error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'llvm::MCCFIInstruction'
C:\ws\src\llvm\include\llvm/MC/MCDwarf.h(622): note: No constructor could take the source type, or constructor overload resolution was ambiguous
```
I'm going to put this back to `INT64_C(0)` for now but open to other suggestions!
https://github.com/llvm/llvm-project/pull/99263
More information about the llvm-commits
mailing list