aboutsummaryrefslogtreecommitdiff
path: root/src/ssa.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-07-29 14:43:42 +0100
committerGinger Bill <bill@gingerbill.org>2017-07-29 14:43:42 +0100
commitca36fabfc0496a3be2c20020b992c4ed38860aa9 (patch)
treed00409f677da8d1d5e62caa2a855abda1c22c101 /src/ssa.cpp
parent7bd62481ad879704d68104dae5fea759074eb570 (diff)
Remove dead code for the "fixed" map idea
Diffstat (limited to 'src/ssa.cpp')
-rw-r--r--src/ssa.cpp4
1 files changed, 2 insertions, 2 deletions
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;