mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 23:22:44 +00:00
fix compilation error
This commit is contained in:
parent
9dffc369f1
commit
d9fb6c2054
@ -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 &&
|
||||
|
Loading…
Reference in New Issue
Block a user