zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 2e3e8d0c74d7b5aac3d1996bc8ce9735f2d3f8c6 (tree)
parent e0290322514827ef8f0bff19f58ceb14b3c3ad62
Author: LemonBoy <thatlemon@gmail.com>
Date:   Wed,  4 Mar 2020 11:00:09 +0100

ir: Adapt ir_print for the new @TypeOf format

Diffstat:
Msrc/ir_print.cpp | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/ir_print.cpp b/src/ir_print.cpp @@ -1118,7 +1118,9 @@ static void ir_print_vector_store_elem(IrPrintGen *irp, IrInstGenVectorStoreElem static void ir_print_typeof(IrPrintSrc *irp, IrInstSrcTypeOf *instruction) { fprintf(irp->f, "@TypeOf("); - // ir_print_other_inst_src(irp, instruction->value); + for (size_t i = 0; i < instruction->value_count; i += 1) { + ir_print_other_inst_src(irp, instruction->values[i]); + } fprintf(irp->f, ")"); }