mirror of
https://github.com/ziglang/zig.git
synced 2026-02-02 20:53:44 +00:00
Merge pull request #12959 from kcbanner/fix_uwtable
llvm: fix missing unwind info (wrong uwtable attribute value)
This commit is contained in:
commit
9c2fb6e186
@ -2572,7 +2572,7 @@ pub const DeclGen = struct {
|
||||
}
|
||||
dg.addFnAttr(llvm_fn, "nounwind");
|
||||
if (comp.unwind_tables) {
|
||||
dg.addFnAttrString(llvm_fn, "uwtable", "sync");
|
||||
dg.addFnAttrInt(llvm_fn, "uwtable", 2);
|
||||
}
|
||||
if (comp.bin_file.options.skip_linker_dependencies or
|
||||
comp.bin_file.options.no_builtin)
|
||||
|
||||
@ -223,7 +223,7 @@ static ZigLLVM_CallingConv get_llvm_cc(CodeGen *g, CallingConvention cc) {
|
||||
|
||||
static void add_uwtable_attr(CodeGen *g, LLVMValueRef fn_val) {
|
||||
if (g->unwind_tables) {
|
||||
addLLVMFnAttrStr(fn_val, "uwtable", "sync");
|
||||
addLLVMFnAttrInt(fn_val, "uwtable", 2);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user