aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-08-25 10:11:58 -0400
committerAndrew Kelley <superjoe30@gmail.com>2017-08-25 10:20:06 -0400
commit629aa10c5672926eb5f8494296f5d5492cc2833f (patch)
tree59db310d0a3317ff76f24d44598146fb794c73c4 /src/codegen.cpp
parent5dddb45ec71ae93750fddda932ef8b7d2ffa293d (diff)
downloadzig-629aa10c5672926eb5f8494296f5d5492cc2833f.tar.gz
zig-629aa10c5672926eb5f8494296f5d5492cc2833f.zip
unreachable still codegens to unreachable in ReleaseFast test mode
closes #430
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index d92a34ee13..26306ac0bc 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -1879,7 +1879,7 @@ static LLVMValueRef ir_render_err_to_int(CodeGen *g, IrExecutable *executable, I
static LLVMValueRef ir_render_unreachable(CodeGen *g, IrExecutable *executable,
IrInstructionUnreachable *unreachable_instruction)
{
- if (ir_want_debug_safety(g, &unreachable_instruction->base) || g->is_test_build) {
+ if (ir_want_debug_safety(g, &unreachable_instruction->base)) {
gen_debug_safety_crash(g, PanicMsgIdUnreachable);
} else {
LLVMBuildUnreachable(g->builder);