aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-08-05 23:43:23 +0100
committergingerBill <bill@gingerbill.org>2020-08-05 23:43:23 +0100
commit5164d1d86673f40bbea4fd1f04a0406b9f54e460 (patch)
treee9d6b7caa145e06d3f75de7606c01fd91bc15719 /src/ir.cpp
parentb6e33a1e64eb8175a0cec73080473f0721510f0d (diff)
Fix named results but in ir.cpp
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 6561c0beb..1a5b2347c 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -10394,7 +10394,7 @@ void ir_build_stmt_internal(irProcedure *proc, Ast *node) {
}
irValue **found = map_get(&proc->module->values, hash_entity(e));
GB_ASSERT(found != nullptr);
- ir_emit_store(proc, *found, results[i]);
+ ir_emit_store(proc, *found, ir_emit_conv(proc, results[i], e->type));
}
}