From 40ca39d3d5a556e3b5d7298e3a5182f4351bdd17 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 31 Jan 2018 01:44:52 -0500 Subject: fix error message mentioning unreachable instead of noreturn --- src/ir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ir.cpp') 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; } -- cgit v1.2.3