authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2020-03-04 11:00:09+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-03-04 17:21:10-05:00
log2e3e8d0c74d7b5aac3d1996bc8ce9735f2d3f8c6
tree773f319e2ca0346b4f520a26f477c9787ce9e0a7
parente0290322514827ef8f0bff19f58ceb14b3c3ad62
signaturelock-open Commit is signed but in an unrecognized format.

ir: Adapt ir_print for the new @TypeOf format


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

src/ir_print.cpp+3-1
......@@ -1118,7 +1118,9 @@ static void ir_print_vector_store_elem(IrPrintGen *irp, IrInstGenVectorStoreElem
11181118
11191119static void ir_print_typeof(IrPrintSrc *irp, IrInstSrcTypeOf *instruction) {
11201120 fprintf(irp->f, "@TypeOf(");
1121 // ir_print_other_inst_src(irp, instruction->value);
1121 for (size_t i = 0; i < instruction->value_count; i += 1) {
1122 ir_print_other_inst_src(irp, instruction->values[i]);
1123 }
11221124 fprintf(irp->f, ")");
11231125}
11241126