diff options
| author | Michael Dusan <michael.dusan@gmail.com> | 2019-08-06 12:24:52 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-08-19 17:24:14 -0400 |
| commit | 24deb1a7fe955202335ed7540fa20a43ae6eca36 (patch) | |
| tree | 0bac693e5ec127f7422bfce0829ef36c47490b67 /src/ir.cpp | |
| parent | efc2237e5a545fac94ecc9c9757d202bda322abd (diff) | |
| download | zig-24deb1a7fe955202335ed7540fa20a43ae6eca36.tar.gz zig-24deb1a7fe955202335ed7540fa20a43ae6eca36.zip | |
fix @bitCast segfault with literal array param
closes #3010
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 ccdd34f893..a018477e0d 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -24561,7 +24561,7 @@ static IrInstruction *ir_analyze_instruction_bit_cast_src(IrAnalyze *ira, IrInst IrInstruction *result_loc = ir_resolve_result(ira, &instruction->base, &instruction->result_loc_bit_cast->base, operand->value.type, operand, false, false, true); - if (result_loc != nullptr && (type_is_invalid(result_loc->value.type) || instr_is_unreachable(result_loc))) + if (result_loc != nullptr && !(type_is_invalid(result_loc->value.type) || instr_is_unreachable(result_loc))) return result_loc; return instruction->result_loc_bit_cast->parent->gen_instruction; |
