Commit bf9e0f98 authored by Eduardo Souza's avatar Eduardo Souza

Change addrspace of muentry_get_thread_local.

parent f11c86b0
Pipeline #5681 failed with stages
in 41 minutes and 21 seconds
......@@ -1970,7 +1970,7 @@ pub unsafe fn gen_instr_thread_exit(
let thread_local_pointer = LLVMBuildBitCast(
llvm_internal_context.builder,
thread_local,
LLVMPointerType(LLVMPointerType(LLVMInt8Type(), 0), 0),
LLVMPointerType(LLVMPointerType(LLVMInt8Type(), 1), 1),
"tl_ref\0".as_ptr() as *const c_char
);
......@@ -1991,7 +1991,7 @@ pub unsafe fn gen_instr_thread_exit(
"tl_address\0".as_ptr() as *const c_char
);
let tl_address_void = LLVMBuildBitCast(
let tl_address_void = LLVMBuildAddrSpaceCast(
llvm_internal_context.builder,
tl_address,
LLVMPointerType(LLVMInt8Type(), 0),
......
......@@ -323,7 +323,7 @@ fn visit_inst_custom(
let llvm_arg_types = vec![];
let return_type = LLVMPointerType(LLVMInt8Type(), 0);
let return_type = LLVMPointerType(LLVMInt8Type(), 1);
add_function_to_module(
llvm_internal_context,
......@@ -339,7 +339,7 @@ fn visit_inst_custom(
let llvm_arg_types = vec![];
let return_type = LLVMPointerType(LLVMInt8Type(), 0);
let return_type = LLVMPointerType(LLVMInt8Type(), 1);
add_function_to_module(
llvm_internal_context,
......
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