authorgravatar for michael.dusan@gmail.comMichael Dusan <michael.dusan@gmail.com> 2019-06-24 14:38:22-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-06-24 14:52:57-04:00
log3021e5ca67acca6cf7420bc5e2400aa6965596f9
tree28825cf92bf03c76c23c3657d1f4449ee8c8cb20
parent020d5b529e67264632d3d09d8418be7842d9f5d7

align (vector -> array) store to result location


1 files changed, 1 insertions(+), 1 deletions(-)

src/codegen.cpp+1-1
...@@ -5451,7 +5451,7 @@ static LLVMValueRef ir_render_vector_to_array(CodeGen *g, IrExecutable *executab...@@ -5451,7 +5451,7 @@ static LLVMValueRef ir_render_vector_to_array(CodeGen *g, IrExecutable *executab
5451 LLVMValueRef vector = ir_llvm_value(g, instruction->vector);5451 LLVMValueRef vector = ir_llvm_value(g, instruction->vector);
5452 LLVMValueRef casted_ptr = LLVMBuildBitCast(g->builder, result_loc,5452 LLVMValueRef casted_ptr = LLVMBuildBitCast(g->builder, result_loc,
5453 LLVMPointerType(get_llvm_type(g, instruction->vector->value.type), 0), "");5453 LLVMPointerType(get_llvm_type(g, instruction->vector->value.type), 0), "");
5454 gen_store_untyped(g, vector, casted_ptr, 0, false);5454 gen_store_untyped(g, vector, casted_ptr, get_ptr_align(g, instruction->result_loc->value.type), false);
5455 return result_loc;5455 return result_loc;
5456}5456}
54575457