Browse Source

Remove unnecessary braces around assigned value in simple_preopt

Removes unnecessary braces that is causing compilation failure
in a test scenario.
pull/1462/head
Johnnie Birch 5 years ago
committed by Benjamin Bouvier
parent
commit
9e11e8d019
  1. 4
      cranelift/codegen/src/simple_preopt.rs

4
cranelift/codegen/src/simple_preopt.rs

@ -902,8 +902,8 @@ fn branch_order(pos: &mut FuncCursor, cfg: &mut ControlFlowGraph, block: Block,
_ => return,
};
let cond_args = { cond_inst_args.as_slice(&pos.func.dfg.value_lists).to_vec() };
let term_args = { term_inst_args.as_slice(&pos.func.dfg.value_lists).to_vec() };
let cond_args = cond_inst_args.as_slice(&pos.func.dfg.value_lists).to_vec();
let term_args = term_inst_args.as_slice(&pos.func.dfg.value_lists).to_vec();
match kind {
BranchOrderKind::BrnzToBrz(cond_arg) => {

Loading…
Cancel
Save