This commit is contained in:
Ayaz Hafiz 2022-04-28 10:25:55 -04:00
parent 9b589b69d9
commit 48df3ecfbe
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -224,7 +224,7 @@ pub fn add_sjlj_roc_panic(env: &Env<'_, '_, '_>) {
} }
} }
pub fn build_longjmp_call<'a, 'ctx, 'env>(env: &Env<'a, 'ctx, 'env>) { pub fn build_longjmp_call(env: &Env) {
let jmp_buf = get_sjlj_buffer(env); let jmp_buf = get_sjlj_buffer(env);
if cfg!(target_arch = "aarch64") { if cfg!(target_arch = "aarch64") {
// Call the Zig-linked longjmp: `void longjmp(i32*, i32)` // Call the Zig-linked longjmp: `void longjmp(i32*, i32)`
@ -238,6 +238,6 @@ pub fn build_longjmp_call<'a, 'ctx, 'env>(env: &Env<'a, 'ctx, 'env>) {
env.context.i8_type().ptr_type(AddressSpace::Generic), env.context.i8_type().ptr_type(AddressSpace::Generic),
"jmp_buf i8*", "jmp_buf i8*",
); );
let _call = env.build_intrinsic_call(LLVM_LONGJMP, &[jmp_buf_i8p.into()]); let _call = env.build_intrinsic_call(LLVM_LONGJMP, &[jmp_buf_i8p]);
} }
} }