mirror of
https://github.com/ziglang/zig.git
synced 2025-12-25 15:43:06 +00:00
fix crash when casting fn call arg
This commit is contained in:
parent
c793c534b8
commit
652bfab3d0
@ -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)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user