aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-02-08 18:13:07 -0500
committerAndrew Kelley <superjoe30@gmail.com>2018-02-08 18:13:07 -0500
commit57edd4dcb31eeaca69b93d2caf0e1f4eb3772e3e (patch)
tree83469f0155d232b2ab71b48b323bd50b8a37f734 /src/ir.cpp
parentfee875770cb8c9363219b736f6c03e15cff39b92 (diff)
downloadzig-57edd4dcb31eeaca69b93d2caf0e1f4eb3772e3e.tar.gz
zig-57edd4dcb31eeaca69b93d2caf0e1f4eb3772e3e.zip
error sets - fix bad value for constant error literal
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index 25723535dd..728a3e815c 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -12308,7 +12308,7 @@ static TypeTableEntry *ir_analyze_instruction_field_ptr(IrAnalyze *ira, IrInstru
if (!resolve_inferred_error_set(ira, child_type, field_ptr_instruction->base.source_node)) {
return ira->codegen->builtin_types.entry_invalid;
}
- ErrorTableEntry *err_entry = find_err_table_entry(child_type, field_name);
+ err_entry = find_err_table_entry(child_type, field_name);
if (err_entry == nullptr) {
ir_add_error(ira, &field_ptr_instruction->base,
buf_sprintf("no error named '%s' in '%s'", buf_ptr(field_name), buf_ptr(&child_type->name)));