diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-05-09 22:17:47 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-05-09 22:17:47 -0400 |
| commit | 4438c5e09bdb5a180a930ac5c5f48941053900f7 (patch) | |
| tree | 9b329af200c6c6128b195ce9e400c734528a730b /src/ir.cpp | |
| parent | bf21747a426887ed2ac866c9a9d317f64b22da79 (diff) | |
| parent | bbae6267fe47d6848068938f1a1a83d545f4818f (diff) | |
| download | zig-4438c5e09bdb5a180a930ac5c5f48941053900f7.tar.gz zig-4438c5e09bdb5a180a930ac5c5f48941053900f7.zip | |
Merge branch 'rework-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 777e219a46..1e6a7d7b8b 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; } |
