Skip to content

Commit c496700

Browse files
authored
[mono] Update attribute name used for controlling frame pointer elimination (#59069)
LLVM 8 introduced `"frame-pointer"="all"` as a substitute for `"no-frame-pointer-elim"="true"`. LLVM 10 outright removed `"no-frame-pointer-elim"`. Fixes #58998.
1 parent 0585160 commit c496700

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mono/mono/mini/mini-llvm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11478,7 +11478,7 @@ emit_method_inner (EmitContext *ctx)
1147811478
mono_llvm_add_func_attr (method, LLVM_ATTR_UW_TABLE);
1147911479

1148011480
if (cfg->disable_omit_fp)
11481-
mono_llvm_add_func_attr_nv (method, "no-frame-pointer-elim", "true");
11481+
mono_llvm_add_func_attr_nv (method, "frame-pointer", "all");
1148211482

1148311483
if (cfg->compile_aot) {
1148411484
if (mono_aot_is_externally_callable (cfg->method)) {

0 commit comments

Comments
 (0)