diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-05-07 21:57:44 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-05-07 21:57:44 -0400 |
| commit | 69ef6ae0f9c2a99119bb4a39ef2112b2250a98c5 (patch) | |
| tree | 73b461d189d3379cc19a02548fcb0365cfde7a61 /src/ir.cpp | |
| parent | dc23350847f6c6f11dbdbb85c312aad2d4c89ec2 (diff) | |
| download | zig-69ef6ae0f9c2a99119bb4a39ef2112b2250a98c5.tar.gz zig-69ef6ae0f9c2a99119bb4a39ef2112b2250a98c5.zip | |
rework std.zig.parser
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index cdf56f7fee..095caa65ed 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -14709,7 +14709,7 @@ static IrInstruction *ir_analyze_union_tag(IrAnalyze *ira, IrInstruction *source } if (value->value.type->id != TypeTableEntryIdUnion) { - ir_add_error(ira, source_instr, + ir_add_error(ira, value, buf_sprintf("expected enum or union type, found '%s'", buf_ptr(&value->value.type->name))); return ira->codegen->invalid_instruction; } |
