Commit 8e3bd074 authored by Eduardo Souza's avatar Eduardo Souza

Change void* to i8*.

parent bb7e1676
Pipeline #5502 passed with stages
in 25 minutes and 2 seconds
......@@ -1088,16 +1088,31 @@ pub unsafe fn gen_llvm_type(
LLVMArrayType(internal_type, *size as u32)
}
MuType_::IRef(mu_type) => {
let internal_type = gen_llvm_type(llvm_internal_context, mu_type);
LLVMPointerType(internal_type, 0)
if mu_type.is_void() {
LLVMPointerType(LLVMInt8Type(), 0)
} else {
let internal_type =
gen_llvm_type(llvm_internal_context, mu_type);
LLVMPointerType(internal_type, 0)
}
}
MuType_::Ref(mu_type) => {
let internal_type = gen_llvm_type(llvm_internal_context, mu_type);
LLVMPointerType(internal_type, 0)
if mu_type.is_void() {
LLVMPointerType(LLVMInt8Type(), 0)
} else {
let internal_type =
gen_llvm_type(llvm_internal_context, mu_type);
LLVMPointerType(internal_type, 0)
}
}
MuType_::UPtr(mu_type) => {
let internal_type = gen_llvm_type(llvm_internal_context, mu_type);
LLVMPointerType(internal_type, 0)
if mu_type.is_void() {
LLVMPointerType(LLVMInt8Type(), 0)
} else {
let internal_type =
gen_llvm_type(llvm_internal_context, mu_type);
LLVMPointerType(internal_type, 0)
}
}
MuType_::FuncRef(sig) => LLVMPointerType(
create_llvm_function_type(llvm_internal_context, sig),
......
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