pass void parameters test

This commit is contained in:
Andrew Kelley
2016-12-22 00:46:17 -05:00
parent 23bebdbcd5
commit 46033a2128
4 changed files with 18 additions and 13 deletions

View File

@@ -1650,6 +1650,9 @@ static LLVMValueRef ir_render_switch_br(CodeGen *g, IrExecutable *executable, Ir
}
static LLVMValueRef ir_render_phi(CodeGen *g, IrExecutable *executable, IrInstructionPhi *instruction) {
if (!type_has_bits(instruction->base.type_entry))
return nullptr;
LLVMTypeRef phi_type;
if (handle_is_ptr(instruction->base.type_entry)) {
phi_type = LLVMPointerType(instruction->base.type_entry->type_ref, 0);