mirror of
https://github.com/ziglang/zig.git
synced 2024-12-03 10:28:48 +00:00
even external functions which provide definitions get nounwind
This commit is contained in:
parent
74d41ce44b
commit
d2f1f57fa4
@ -268,7 +268,7 @@ static LLVMValueRef fn_llvm_value(CodeGen *g, FnTableEntry *fn_table_entry) {
|
||||
LLVMAddFunctionAttr(fn_table_entry->llvm_value, LLVMNoReturnAttribute);
|
||||
}
|
||||
LLVMSetFunctionCallConv(fn_table_entry->llvm_value, fn_type->data.fn.calling_convention);
|
||||
if (!fn_type->data.fn.fn_type_id.is_extern) {
|
||||
if (!fn_type->data.fn.fn_type_id.is_extern || fn_table_entry->fn_def_node != nullptr) {
|
||||
LLVMAddFunctionAttr(fn_table_entry->llvm_value, LLVMNoUnwindAttribute);
|
||||
}
|
||||
if (!g->is_release_build && fn_table_entry->fn_inline != FnInlineAlways) {
|
||||
|
Loading…
Reference in New Issue
Block a user