aboutsummaryrefslogtreecommitdiff
path: root/src/stage1/codegen.cpp
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2022-09-26 23:05:39 +0200
committerGitHub <noreply@github.com>2022-09-26 23:05:39 +0200
commit9c2fb6e1860d1ea7fab85ceedae290053756d543 (patch)
treeb068c102c64c406e419413cb56d093d491d9c052 /src/stage1/codegen.cpp
parent9cd521a24f6062889ed574535aa8abc9bf057f81 (diff)
parent1cc890e5c3b5f7fffb826dc8d62a7129987e78ff (diff)
downloadzig-9c2fb6e1860d1ea7fab85ceedae290053756d543.tar.gz
zig-9c2fb6e1860d1ea7fab85ceedae290053756d543.zip
Merge pull request #12959 from kcbanner/fix_uwtable
llvm: fix missing unwind info (wrong uwtable attribute value)
Diffstat (limited to 'src/stage1/codegen.cpp')
-rw-r--r--src/stage1/codegen.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}
}