AstGen: implement defer for break

This commit is contained in:
Andrew Kelley
2021-04-20 17:03:18 -07:00
parent 458c4b6fc6
commit a62db38d90
3 changed files with 19 additions and 10 deletions

View File

@@ -1813,7 +1813,7 @@ pub const SrcLoc = struct {
pub fn byteOffset(src_loc: SrcLoc) !u32 {
switch (src_loc.lazy) {
.unneeded => unreachable,
.entire_file => unreachable,
.entire_file => return 0,
.byte_abs => |byte_index| return byte_index,