LLVM backends: more LLVM 15 fixes

uwtable now needs a "sync" or "async" parameter.

more opaque pointer fixes
This commit is contained in:
Andrew Kelley
2022-08-03 16:42:27 -07:00
parent 7e43904508
commit a3045b8abb
2 changed files with 10 additions and 8 deletions

View File

@@ -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) {
addLLVMFnAttr(fn_val, "uwtable");
addLLVMFnAttrStr(fn_val, "uwtable", "sync");
}
}