diff options
| author | gingerBill <bill@gingerbill.org> | 2017-11-28 23:46:01 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2017-11-28 23:46:01 +0000 |
| commit | 04cce1826b649e4780e4673f68f9f5e5299f5aaf (patch) | |
| tree | d9f7849aea9adf5f7f33fc8fc9c7a8df4cb42569 /src/ir.cpp | |
| parent | cc28cda05371bd6add5c9af1db1c771c68d32c4d (diff) | |
Fix map IR bug
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 2 |
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: { |