Void type in llvm may only be used as a function return type. You may not form a pointer to void or use it as a structure member.

Fixes assertion failure initializing llvm backend.
This commit is contained in:
Nick Lewycky 2019-06-25 16:04:31 -07:00
parent d4634dfdb9
commit 55394b4f06

View File

@ -159,10 +159,10 @@ impl Intrinsics {
let imported_func_ty =
context.struct_type(&[i8_ptr_ty_basic, ctx_ptr_ty.as_basic_type_enum()], false);
let sigindex_ty = i32_ty;
let rt_intrinsics_ty = void_ty;
let rt_intrinsics_ty = i8_ty;
let stack_lower_bound_ty = i8_ty;
let memory_base_ty = i8_ty;
let memory_bound_ty = void_ty;
let memory_bound_ty = i8_ty;
let internals_ty = i64_ty;
let local_function_ty = i8_ptr_ty;