| ... | @@ -1182,7 +1182,7 @@ pub fn getMainBody(air: Air) []const Air.Inst.Index { | ... | @@ -1182,7 +1182,7 @@ pub fn getMainBody(air: Air) []const Air.Inst.Index { |
| 1182 | return air.extra[extra.end..][0..extra.data.body_len]; | 1182 | return air.extra[extra.end..][0..extra.data.body_len]; |
| 1183 | } | 1183 | } |
| 1184 | | 1184 | |
| 1185 | pub fn typeOf(air: Air, inst: Air.Inst.Ref, ip: *const InternPool) Type { | 1185 | pub fn typeOf(air: *const Air, inst: Air.Inst.Ref, ip: *const InternPool) Type { |
| 1186 | const ref_int = @intFromEnum(inst); | 1186 | const ref_int = @intFromEnum(inst); |
| 1187 | if (ref_int < InternPool.static_keys.len) { | 1187 | if (ref_int < InternPool.static_keys.len) { |
| 1188 | return InternPool.static_keys[ref_int].typeOf().toType(); | 1188 | return InternPool.static_keys[ref_int].typeOf().toType(); |
| ... | @@ -1190,7 +1190,7 @@ pub fn typeOf(air: Air, inst: Air.Inst.Ref, ip: *const InternPool) Type { | ... | @@ -1190,7 +1190,7 @@ pub fn typeOf(air: Air, inst: Air.Inst.Ref, ip: *const InternPool) Type { |
| 1190 | return air.typeOfIndex(ref_int - ref_start_index, ip); | 1190 | return air.typeOfIndex(ref_int - ref_start_index, ip); |
| 1191 | } | 1191 | } |
| 1192 | | 1192 | |
| 1193 | pub fn typeOfIndex(air: Air, inst: Air.Inst.Index, ip: *const InternPool) Type { | 1193 | pub fn typeOfIndex(air: *const Air, inst: Air.Inst.Index, ip: *const InternPool) Type { |
| 1194 | const datas = air.instructions.items(.data); | 1194 | const datas = air.instructions.items(.data); |
| 1195 | switch (air.instructions.items(.tag)[inst]) { | 1195 | switch (air.instructions.items(.tag)[inst]) { |
| 1196 | .add, | 1196 | .add, |