aboutsummaryrefslogtreecommitdiff
path: root/src/ir.c
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-04-16 16:38:05 +0100
committerGinger Bill <bill@gingerbill.org>2017-04-16 16:38:05 +0100
commitc69df7cd3ad21ead185437c44531686be9a391e0 (patch)
tree1eebc04d911189d30081dc8431d4b4c5850ef48f /src/ir.c
parent67d8f48553209b65a813d643d97939214504ee5e (diff)
Exit program if there were syntax errors
Diffstat (limited to 'src/ir.c')
-rw-r--r--src/ir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ir.c b/src/ir.c
index 794f6cb07..3c74ebbab 100644
--- a/src/ir.c
+++ b/src/ir.c
@@ -1596,8 +1596,8 @@ irValue *ir_gen_map_key(irProcedure *proc, irValue *key, Type *key_type) {
irValue *bits = NULL;
i64 size = type_size_of(proc->module->allocator, t);
switch (8*size) {
- case 32: bits = ir_emit_bitcast(proc, key, t_u32); break;
- case 64: bits = ir_emit_bitcast(proc, key, t_u64); break;
+ case 32: bits = ir_emit_transmute(proc, key, t_u32); break;
+ case 64: bits = ir_emit_transmute(proc, key, t_u64); break;
default: GB_PANIC("Unhandled float size: %lld bits", size); break;
}