Tidy up an unneeded mut.

This commit is contained in:
Dan Gohman
2018-04-03 15:48:14 -07:00
parent 775c674b38
commit e2681a6303

View File

@@ -493,7 +493,7 @@ fn simplify(pos: &mut FuncCursor, inst: Inst) {
} else if let ValueDef::Result(iconst_inst, _) = pos.func.dfg.value_def(args[0]) {
if let InstructionData::UnaryImm {
opcode: Opcode::Iconst,
mut imm,
imm,
} = pos.func.dfg[iconst_inst]
{
let new_opcode = match opcode {