From d9fb6c20540300013dc67ec144b555b8ab649646 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 26 Jan 2020 00:55:04 -0500 Subject: [PATCH] fix compilation error --- src/ir.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ir.cpp b/src/ir.cpp index 7e73b3107d..b24cf3828e 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -23263,9 +23263,9 @@ static IrInstGen *ir_analyze_instruction_enum_tag_name(IrAnalyze *ira, IrInstSrc } if (target->value->type->id != ZigTypeIdEnum) { - ir_add_error(ira, target, + ir_add_error(ira, &target->base, buf_sprintf("expected enum tag, found '%s'", buf_ptr(&target->value->type->name))); - return ira->codegen->invalid_instruction; + return ira->codegen->invalid_inst_gen; } if (target->value->type->data.enumeration.src_field_count == 1 &&