aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-06-13 20:24:10 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-06-13 20:24:10 -0400
commiteaf74f4f96f5a6c864dec9ada47eba067b699881 (patch)
tree481c15c37632398a8b552c25ddefa4906012d9c6 /src/ir.cpp
parent57347aacd72dba0f5843e582f414f71f434a4d6f (diff)
downloadzig-eaf74f4f96f5a6c864dec9ada47eba067b699881.tar.gz
zig-eaf74f4f96f5a6c864dec9ada47eba067b699881.zip
fix bitcast packed struct to integer and back
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,