aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-08-05 23:20:53 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-08-05 23:20:53 -0700
commitc7dc451a2a06a0ade0bb44a48cb6e5cde6e237df (patch)
tree2b3f5e06da3918326b61eeb4f10a11d8cf7668ed /src/Compilation.zig
parent786e238a7f1034a09bc0471b3796051abb874e14 (diff)
downloadzig-c7dc451a2a06a0ade0bb44a48cb6e5cde6e237df.tar.gz
zig-c7dc451a2a06a0ade0bb44a48cb6e5cde6e237df.zip
stage2: more debuggable panics
For now these errors are handled via `@panic` rather than `unreachable`. These are relatively likely bugs to occur at this early stage of development, and handling them as panics lets us ship release builds of the compiler without worrying about undefined behavior. Furthermore, in stage1, `@panic` is implemented to include an error return trace, while `unreachable` is not. In this case, the error return traces are extremely helpful in debugging the compiler.
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions