diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-06-23 18:19:17 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-07-02 13:26:50 -0700 |
| commit | 125b85d7375b96b4847f6ead51c853cdc0567506 (patch) | |
| tree | 34a947e48f84ce6455d3ff133828a8e0e5614ce8 /src/Module.zig | |
| parent | d84b386f6034278c8a9e8c3d2b0975ac541584aa (diff) | |
| download | zig-125b85d7375b96b4847f6ead51c853cdc0567506.tar.gz zig-125b85d7375b96b4847f6ead51c853cdc0567506.zip | |
move "unreachable code" error from stage1 to stage2
* AstGen: implement "unreachable code" error for blocks. This works at
the statement level.
* stage1: remove the "unreachable code" error implementation, which
means removing the `is_gen` field from IrInstSrc. This is one small
step towards a smaller memory footprint for stage1. The benefits
won't be realized until a future commit because this flag took
advantage of padding.
There may be a regression here with "union has no associated enum"
error, and there is a regression with the following code:
```zig
const a = noreturn;
```
A future commit will address these regressions.
Diffstat (limited to 'src/Module.zig')
0 files changed, 0 insertions, 0 deletions
