diff --git a/hir/src/write.rs b/hir/src/write.rs index a062f1880..a458a42d1 100644 --- a/hir/src/write.rs +++ b/hir/src/write.rs @@ -178,21 +178,13 @@ fn write_operands(w: &mut dyn Write, dfg: &DataFlowGraph, inst: Inst) -> fmt::Re write_block_args(w, else_dest.1.as_slice(pool)) } Instruction::Br(Br { - op, destination, args, .. - }) if *op == Opcode::Br => { + }) => { write!(w, " {}", destination)?; write_block_args(w, args.as_slice(pool)) } - Instruction::Br(Br { - destination, args, .. - }) => { - let args = args.as_slice(pool); - write!(w, " {}, {}", args[0], destination)?; - write_block_args(w, &args[1..]) - } Instruction::Switch(Switch { arg, arms, default, .. }) => {