aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-05-07 21:57:44 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-05-07 21:57:44 -0400
commit69ef6ae0f9c2a99119bb4a39ef2112b2250a98c5 (patch)
tree73b461d189d3379cc19a02548fcb0365cfde7a61 /src
parentdc23350847f6c6f11dbdbb85c312aad2d4c89ec2 (diff)
downloadzig-69ef6ae0f9c2a99119bb4a39ef2112b2250a98c5.tar.gz
zig-69ef6ae0f9c2a99119bb4a39ef2112b2250a98c5.zip
rework std.zig.parser
Diffstat (limited to 'src')
-rw-r--r--src/ir.cpp2
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;
}