Minor code cleanup.

This commit is contained in:
Dan Gohman
2018-04-13 13:48:16 -07:00
parent 98a4e32236
commit 645fa3e858

View File

@@ -179,9 +179,7 @@ impl Function {
/// Wrapper around `DataFlowGraph::encode` which assigns `inst` the resulting encoding.
pub fn update_encoding(&mut self, inst: ir::Inst, isa: &TargetIsa) -> Result<(), Legalize> {
self.dfg.encode(inst, isa).map(
|e| { self.encodings[inst] = e; },
)
self.dfg.encode(inst, isa).map(|e| self.encodings[inst] = e)
}
}