aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-01-31 01:44:52 -0500
committerAndrew Kelley <superjoe30@gmail.com>2018-01-31 01:44:52 -0500
commit40ca39d3d5a556e3b5d7298e3a5182f4351bdd17 (patch)
treedd3a782b155b889a915aebd429887f78a699aea5 /src/ir.cpp
parent3ef6a00bb8854119d39bba521a0256d4884001f5 (diff)
downloadzig-40ca39d3d5a556e3b5d7298e3a5182f4351bdd17.tar.gz
zig-40ca39d3d5a556e3b5d7298e3a5182f4351bdd17.zip
fix error message mentioning unreachable instead of noreturn
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index f76ed753d5..9d5f59d187 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -7009,7 +7009,7 @@ static IrInstruction *ir_get_const_ptr(IrAnalyze *ira, IrInstruction *instructio
if (pointee_type->id == TypeTableEntryIdMetaType) {
TypeTableEntry *type_entry = pointee->data.x_type;
if (type_entry->id == TypeTableEntryIdUnreachable) {
- ir_add_error(ira, instruction, buf_sprintf("pointer to unreachable not allowed"));
+ ir_add_error(ira, instruction, buf_sprintf("pointer to noreturn not allowed"));
return ira->codegen->invalid_instruction;
}