stage2: add error for unused labels

This commit is contained in:
Veikka Tuominen
2020-12-26 02:36:12 +02:00
parent 40aad4f47e
commit a50759325c
3 changed files with 40 additions and 6 deletions

View File

@@ -804,7 +804,7 @@ pub const Scope = struct {
pub const Label = struct {
token: ast.TokenIndex,
block_inst: *zir.Inst.Block,
result_loc: astgen.ResultLoc,
used: bool = false,
};
};