diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/codegen/llvm.zig | 2 | ||||
| -rw-r--r-- | src/stage1/codegen.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig index b2b9d7de2c..2f66c56823 100644 --- a/src/codegen/llvm.zig +++ b/src/codegen/llvm.zig @@ -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) diff --git a/src/stage1/codegen.cpp b/src/stage1/codegen.cpp index 2341ad4483..bd572bb96c 100644 --- a/src/stage1/codegen.cpp +++ b/src/stage1/codegen.cpp @@ -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); } } |
