diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-01-12 18:10:18 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-01-12 18:10:18 -0500 |
| commit | 652bfab3d0c554e1479563a6fe007d527ee0f5cb (patch) | |
| tree | dbc3fb36b6dbd5dd8c64042e062bf4ba4c5a9e05 | |
| parent | c793c534b87395bd42c5c53c6ac76537026a5586 (diff) | |
| download | zig-652bfab3d0c554e1479563a6fe007d527ee0f5cb.tar.gz zig-652bfab3d0c554e1479563a6fe007d527ee0f5cb.zip | |
fix crash when casting fn call arg
| -rw-r--r-- | src/ir.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index 8da0f13498..50eae17ebf 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -6154,6 +6154,7 @@ static IrInstruction *ir_analyze_cast_ref(IrAnalyze *ira, IrInstruction *source_ } else { IrInstruction *new_instruction = ir_build_ref(&ira->new_irb, source_instr->scope, source_instr->source_node, value, true); + new_instruction->value.type = wanted_type; TypeTableEntry *child_type = wanted_type->data.pointer.child_type; if (type_has_bits(child_type)) { |
