Implemented clippy improvements

This commit is contained in:
Aaron Power
2018-07-24 14:17:21 +01:00
committed by Dan Gohman
parent d6d1e7253d
commit eed861c6e1
5 changed files with 15 additions and 14 deletions

View File

@@ -218,7 +218,7 @@ fn optimize_complex_addresses(pos: &mut EncCursor, inst: Inst, isa: &TargetIsa)
if let ValueDef::Result(result_inst, _) = pos.func.dfg.value_def(info.arg) {
match pos.func.dfg[result_inst] {
InstructionData::Binary { opcode, args } if opcode == Opcode::Iadd => {
info.add_args = Some(args.clone());
info.add_args = Some(args);
}
_ => return,
}