diff options
| author | Josh Wolfe <thejoshwolfe@gmail.com> | 2017-04-23 21:49:42 -0700 |
|---|---|---|
| committer | Josh Wolfe <thejoshwolfe@gmail.com> | 2017-04-23 21:50:34 -0700 |
| commit | ac7971122dc32f59d82430285e7eaefe5d0d4301 (patch) | |
| tree | 191b797a0b54b9832711dc76e88d98d460546291 /src/ir.cpp | |
| parent | c6605cba8375871a145896f9cf1090e9c823214a (diff) | |
| download | zig-ac7971122dc32f59d82430285e7eaefe5d0d4301.tar.gz zig-ac7971122dc32f59d82430285e7eaefe5d0d4301.zip | |
fix check-statement-is-void. add tests
see #291
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 36d44d14d5..2527fdd803 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -12666,7 +12666,7 @@ static TypeTableEntry *ir_analyze_instruction_check_switch_prongs(IrAnalyze *ira static TypeTableEntry *ir_analyze_instruction_check_statement_is_void(IrAnalyze *ira, IrInstructionCheckStatementIsVoid *instruction) { - IrInstruction *statement_value = instruction->statement_value; + IrInstruction *statement_value = instruction->statement_value->other; TypeTableEntry *statement_type = statement_value->value.type; if (type_is_invalid(statement_type)) return ira->codegen->builtin_types.entry_invalid; |
