diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-11-29 21:33:58 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-11-29 21:34:17 -0500 |
| commit | 716b0b8655610a3a64818c51a91254c6e4715e49 (patch) | |
| tree | 0933336a01ef47e578db46a90b7641c843a7c3ef /src/analyze.cpp | |
| parent | ccea8dcbf61cc4483bc73ba45751e545a8f3541e (diff) | |
| download | zig-716b0b8655610a3a64818c51a91254c6e4715e49.tar.gz zig-716b0b8655610a3a64818c51a91254c6e4715e49.zip | |
fix capturing value of switch with all unreachable prongs
closes #635
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index 1c223c63f7..a12934f2b2 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -4664,7 +4664,7 @@ void render_const_value(CodeGen *g, Buf *buf, ConstExprValue *const_val) { buf_appendf(buf, "%s", buf_ptr(&const_val->data.x_type->name)); return; case TypeTableEntryIdUnreachable: - buf_appendf(buf, "@unreachable()"); + buf_appendf(buf, "unreachable"); return; case TypeTableEntryIdBool: { |
