From ca36fabfc0496a3be2c20020b992c4ed38860aa9 Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Sat, 29 Jul 2017 14:43:42 +0100 Subject: Remove dead code for the "fixed" map idea --- src/ssa.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ssa.cpp') diff --git a/src/ssa.cpp b/src/ssa.cpp index d934bb644..94ee4f15e 100644 --- a/src/ssa.cpp +++ b/src/ssa.cpp @@ -839,7 +839,7 @@ ssaValue *ssa_emit_ptr_index(ssaProc *p, ssaValue *s, i64 index) { case 2: result_type = t_int_ptr; break; case 3: result_type = t_allocator_ptr; break; } - } else if (is_type_dynamic_map(t)) { + } else if (is_type_map(t)) { Type *gst = t->Map.generated_struct_type; switch (index) { case 0: result_type = make_type_pointer(a, gst->Struct.fields[0]->type); break; @@ -899,7 +899,7 @@ ssaValue *ssa_emit_value_index(ssaProc *p, ssaValue *s, i64 index) { case 2: result_type = t_int; break; case 3: result_type = t_allocator; break; } - } else if (is_type_dynamic_map(t)) { + } else if (is_type_map(t)) { Type *gst = t->Map.generated_struct_type; switch (index) { case 0: result_type = gst->Struct.fields[0]->type; break; -- cgit v1.2.3