Commit f11c86b0 authored by Eduardo Souza's avatar Eduardo Souza

Change address space of exceptions.

parent 92bdd522
Pipeline #5680 canceled with stages
......@@ -2622,7 +2622,7 @@ pub unsafe fn gen_instr_throw(
let exception_type = exception_mu.ty();
let exception_llvm_type = LLVMPointerType(
gen_llvm_type(llvm_internal_context, &exception_type),
0
1
);
let target_data = LLVMGetModuleDataLayout(llvm_internal_context.module);
let size = LLVMABISizeOfType(target_data, exception_llvm_type);
......@@ -2658,7 +2658,7 @@ pub unsafe fn gen_instr_throw(
panic!("function does not exist");
}
let null_const = LLVMConstNull(LLVMPointerType(LLVMInt8Type(), 0));
let null_const = LLVMConstNull(LLVMPointerType(LLVMInt8Type(), 1));
let mut args = vec![exception_loc, null_const.clone(), null_const];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment