aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index 3c16c8251a..84daf645b9 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -23254,9 +23254,7 @@ static IrInstruction *ir_analyze_bit_cast(IrAnalyze *ira, IrInstruction *source_
return result;
}
- IrInstruction *result = ir_build_bit_cast_gen(ira, source_instr, value, dest_type);
- ir_assert(!(handle_is_ptr(dest_type) && !handle_is_ptr(src_type)), source_instr);
- return result;
+ return ir_build_bit_cast_gen(ira, source_instr, value, dest_type);
}
static IrInstruction *ir_analyze_int_to_ptr(IrAnalyze *ira, IrInstruction *source_instr, IrInstruction *target,