mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
align (vector -> array) store to result location
This commit is contained in:
parent
020d5b529e
commit
3021e5ca67
@ -5451,7 +5451,7 @@ static LLVMValueRef ir_render_vector_to_array(CodeGen *g, IrExecutable *executab
|
||||
LLVMValueRef vector = ir_llvm_value(g, instruction->vector);
|
||||
LLVMValueRef casted_ptr = LLVMBuildBitCast(g->builder, result_loc,
|
||||
LLVMPointerType(get_llvm_type(g, instruction->vector->value.type), 0), "");
|
||||
gen_store_untyped(g, vector, casted_ptr, 0, false);
|
||||
gen_store_untyped(g, vector, casted_ptr, get_ptr_align(g, instruction->result_loc->value.type), false);
|
||||
return result_loc;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user