aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2023-06-03 19:39:59 -0400
committerJacob Young <jacobly0@users.noreply.github.com>2023-06-20 14:02:08 -0400
commit3c4b58cea76e51da1b79dee9e6c0a5cd2627a283 (patch)
treeda8c8131633b44d190fe4d9309e4bdb535178692 /src
parent9eb008717b2786e885f4110503dc461d0bf2e682 (diff)
downloadzig-3c4b58cea76e51da1b79dee9e6c0a5cd2627a283.tar.gz
zig-3c4b58cea76e51da1b79dee9e6c0a5cd2627a283.zip
Air: optimize around byval struct passing compiler bug
Diffstat (limited to 'src')
-rw-r--r--src/Air.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Air.zig b/src/Air.zig
index d4d4de07f2..937b7dc4e3 100644
--- a/src/Air.zig
+++ b/src/Air.zig
@@ -1182,7 +1182,7 @@ pub fn getMainBody(air: Air) []const Air.Inst.Index {
return air.extra[extra.end..][0..extra.data.body_len];
}
-pub fn typeOf(air: Air, inst: Air.Inst.Ref, ip: *const InternPool) Type {
+pub fn typeOf(air: *const Air, inst: Air.Inst.Ref, ip: *const InternPool) Type {
const ref_int = @intFromEnum(inst);
if (ref_int < InternPool.static_keys.len) {
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 {
return air.typeOfIndex(ref_int - ref_start_index, ip);
}
-pub fn typeOfIndex(air: Air, inst: Air.Inst.Index, ip: *const InternPool) Type {
+pub fn typeOfIndex(air: *const Air, inst: Air.Inst.Index, ip: *const InternPool) Type {
const datas = air.instructions.items(.data);
switch (air.instructions.items(.tag)[inst]) {
.add,