From 8af049487193b45684737db6fc0bbed08e400a35 Mon Sep 17 00:00:00 2001 From: Jacob Johannsen Date: Wed, 20 Sep 2023 19:22:46 +0200 Subject: [PATCH] Fixed formatter for branch opcodes --- hir/src/write.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/hir/src/write.rs b/hir/src/write.rs index a062f1880..89beafd3f 100644 --- a/hir/src/write.rs +++ b/hir/src/write.rs @@ -182,17 +182,10 @@ fn write_operands(w: &mut dyn Write, dfg: &DataFlowGraph, inst: Inst) -> fmt::Re 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, .. }) => {