aboutsummaryrefslogtreecommitdiff
path: root/src/ir_print.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-02-23 18:05:41 +0000
committergingerBill <bill@gingerbill.org>2019-02-23 18:05:41 +0000
commit38ae2e9efaf8d227a138d749085599e7ee9fde54 (patch)
treed2b5e32dc31dab7b055bbf7da38e55c4a5b96811 /src/ir_print.cpp
parent684945ea57da61c82ab5425930c5571157359cfb (diff)
Allow basic arithmetic operations for vectors
Diffstat (limited to 'src/ir_print.cpp')
-rw-r--r--src/ir_print.cpp2
1 files changed, 1 insertions, 1 deletions
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);