diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-06-13 20:24:10 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-06-13 20:24:10 -0400 |
| commit | eaf74f4f96f5a6c864dec9ada47eba067b699881 (patch) | |
| tree | 481c15c37632398a8b552c25ddefa4906012d9c6 /src | |
| parent | 57347aacd72dba0f5843e582f414f71f434a4d6f (diff) | |
| download | zig-eaf74f4f96f5a6c864dec9ada47eba067b699881.tar.gz zig-eaf74f4f96f5a6c864dec9ada47eba067b699881.zip | |
fix bitcast packed struct to integer and back
Diffstat (limited to 'src')
| -rw-r--r-- | src/ir.cpp | 4 |
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, |
