Skip to content

Commit

Permalink
[mono] Set unwind table kind (dotnet#107462)
Browse files Browse the repository at this point in the history
* Set unwind table kind

To stop hitting assert in the verbose output, when aot compiler is built
with the debug configuration of llvm

* Set synchronous uw table kind on arm64

* Feedback
  • Loading branch information
radekdoulik authored and lambdageek committed Oct 3, 2024
1 parent f4af0ce commit be5cfbc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/mono/mono/mini/mini-llvm-cpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,12 @@ void
mono_llvm_add_func_attr (LLVMValueRef func, AttrKind kind)
{
unwrap<Function> (func)->addFnAttr (convert_attr (kind));
if (kind == LLVM_ATTR_UW_TABLE)
#if defined(TARGET_ARM64) && defined(TARGET_MACH)
unwrap<Function> (func)->setUWTableKind (UWTableKind::Sync);
#else
unwrap<Function> (func)->setUWTableKind (UWTableKind::Async);
#endif
}

void
Expand Down

0 comments on commit be5cfbc

Please sign in to comment.