mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
stage1: another LLVM opaque pointers fix
This commit is contained in:
parent
e1dbb70bef
commit
7c9a8ecc2a
@ -2379,8 +2379,8 @@ static bool iter_function_params_c_abi(CodeGen *g, ZigType *fn_type, FnWalk *fn_
|
||||
for (uint32_t i = 0; i < number_of_regs; i += 1) {
|
||||
LLVMValueRef adjusted_ptr_to_struct = LLVMBuildStructGEP2(g->builder,
|
||||
abi_type, abi_ptr_to_struct, i, "");
|
||||
LLVMValueRef loaded = LLVMBuildLoad2(g->builder,
|
||||
ZigLLVMGetGEPResultElementType(adjusted_ptr_to_struct),
|
||||
LLVMTypeRef field_llvm_ty = LLVMStructGetTypeAtIndex(abi_type, i);
|
||||
LLVMValueRef loaded = LLVMBuildLoad2(g->builder, field_llvm_ty,
|
||||
adjusted_ptr_to_struct, "");
|
||||
fn_walk->data.call.gen_param_values->append(loaded);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user