aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2017-11-28 23:46:01 +0000
committergingerBill <bill@gingerbill.org>2017-11-28 23:46:01 +0000
commit04cce1826b649e4780e4673f68f9f5e5299f5aaf (patch)
treed9f7849aea9adf5f7f33fc8fc9c7a8df4cb42569 /src/ir.cpp
parentcc28cda05371bd6add5c9af1db1c771c68d32c4d (diff)
Fix map IR bug
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index 83304596f..1b2705d04 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -7006,7 +7006,7 @@ void ir_build_stmt_internal(irProcedure *proc, AstNode *node) {
}
irValue *entries_ptr = ir_emit_struct_ep(proc, map, 1);
irValue *count_ptr = ir_emit_struct_ep(proc, entries_ptr, 1);
- ir_build_range_indexed(proc, map, val0_type, count_ptr, &val, &key, &loop, &done);
+ ir_build_range_indexed(proc, map, val1_type, count_ptr, &val, &key, &loop, &done);
break;
}
case Type_Array: {