From 23feafdef0ff45e67ac63c7e220830c93b095e18 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 5 Jan 2017 19:25:36 -0500 Subject: pass more tests by removing assertion, fixing error column, and updating expected message --- 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 824c3ec2a1..fa270e5f3a 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -9121,7 +9121,7 @@ static TypeTableEntry *ir_analyze_instruction_unwrap_maybe(IrAnalyze *ira, if (type_entry->id == TypeTableEntryIdInvalid) { return ira->codegen->builtin_types.entry_invalid; } else if (type_entry->id != TypeTableEntryIdMaybe) { - ir_add_error_node(ira, unwrap_maybe_instruction->base.source_node, + ir_add_error_node(ira, unwrap_maybe_instruction->value->source_node, buf_sprintf("expected nullable type, found '%s'", buf_ptr(&type_entry->name))); return ira->codegen->builtin_types.entry_invalid; } -- cgit v1.2.3