aboutsummaryrefslogtreecommitdiff
path: root/src/AstGen.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-07-12 15:30:30 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-07-20 12:19:16 -0700
commit913393fd3b986dd262a8419341dced9ad5d9620d (patch)
tree24206439ed1abe1e7ca09a0f164d79981ea4eb2b /src/AstGen.zig
parentee6432537ee29485c5de6c8b0911ef1482d752a7 (diff)
downloadzig-913393fd3b986dd262a8419341dced9ad5d9620d.tar.gz
zig-913393fd3b986dd262a8419341dced9ad5d9620d.zip
stage2: first pass over Module.zig for AIR memory layout
Diffstat (limited to 'src/AstGen.zig')
-rw-r--r--src/AstGen.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/AstGen.zig b/src/AstGen.zig
index 19906c94d3..24766aaf60 100644
--- a/src/AstGen.zig
+++ b/src/AstGen.zig
@@ -9821,7 +9821,7 @@ fn advanceSourceCursor(astgen: *AstGen, source: []const u8, end: usize) void {
astgen.source_column = column;
}
-const ref_start_index = Zir.Inst.Ref.typed_value_map.len;
+const ref_start_index: u32 = Zir.Inst.Ref.typed_value_map.len;
fn indexToRef(inst: Zir.Inst.Index) Zir.Inst.Ref {
return @intToEnum(Zir.Inst.Ref, ref_start_index + inst);