stage2 astgen for LabeledBlock

This commit is contained in:
Andrew Kelley
2020-08-14 16:42:36 -07:00
parent 9a5a1013a8
commit b49d3672f3
2 changed files with 17 additions and 6 deletions

View File

@@ -737,6 +737,7 @@ pub const Scope = struct {
arena: *Allocator,
/// The first N instructions in a function body ZIR are arg instructions.
instructions: std.ArrayListUnmanaged(*zir.Inst) = .{},
label: ?ast.TokenIndex = null,
};
/// This is always a `const` local and importantly the `inst` is a value type, not a pointer.