authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2016-12-31 19:48:17-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2016-12-31 19:48:17-05:00
logdbb1018ca678652423e237bb5465f9b20f88c986
tree09bb03bb1309cfb122ab58f480544f69f8243edf
parentff5120c584834ede4ff1373fd34c89dd3a6b0f08

IR: std library passes codegen


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

src/codegen.cpp-3
......@@ -1290,13 +1290,11 @@ static LLVMValueRef ir_render_store_ptr(CodeGen *g, IrExecutable *executable, Ir
12901290
12911291 assert(instruction->ptr->value.type->id == TypeTableEntryIdPointer);
12921292 TypeTableEntry *op1_type = instruction->ptr->value.type->data.pointer.child_type;
1293 TypeTableEntry *op2_type = instruction->value->value.type;
12941293
12951294 if (!type_has_bits(op1_type)) {
12961295 return nullptr;
12971296 }
12981297 if (handle_is_ptr(op1_type)) {
1299 assert(op1_type == op2_type);
13001298 return gen_struct_memcpy(g, value, ptr, op1_type);
13011299 }
13021300
......@@ -2146,7 +2144,6 @@ static LLVMValueRef ir_render_err_wrap_payload(CodeGen *g, IrExecutable *executa
21462144 LLVMBuildStore(g->builder, ok_err_val, err_tag_ptr);
21472145
21482146 LLVMValueRef payload_ptr = LLVMBuildStructGEP(g->builder, instruction->tmp_ptr, err_union_payload_index, "");
2149 assert(child_type == instruction->value->value.type);
21502147 gen_assign_raw(g, payload_ptr, payload_val, child_type);
21512148
21522149 return instruction->tmp_ptr;