mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
pass void parameters test
This commit is contained in:
1 parent
23bebdbcd5
commit
46033a2128
4 files changed
+18
-13
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user