From 38ae2e9efaf8d227a138d749085599e7ee9fde54 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 23 Feb 2019 18:05:41 +0000 Subject: Allow basic arithmetic operations for vectors --- src/ir_print.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ir_print.cpp') diff --git a/src/ir_print.cpp b/src/ir_print.cpp index 0cc9f52e3..af5abe180 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -1700,7 +1700,7 @@ void ir_print_instr(irFileBuffer *f, irModule *m, irValue *value) { case irInstr_BinaryOp: { irInstrBinaryOp *bo = &value->Instr.BinaryOp; Type *type = base_type(ir_type(bo->left)); - Type *elem_type = type; + Type *elem_type = base_array_type(type); ir_fprintf(f, "%%%d = ", value->index); -- cgit v1.2.3