Minor code cleanup.
This commit is contained in:
@@ -179,9 +179,7 @@ impl Function {
|
|||||||
|
|
||||||
/// Wrapper around `DataFlowGraph::encode` which assigns `inst` the resulting encoding.
|
/// Wrapper around `DataFlowGraph::encode` which assigns `inst` the resulting encoding.
|
||||||
pub fn update_encoding(&mut self, inst: ir::Inst, isa: &TargetIsa) -> Result<(), Legalize> {
|
pub fn update_encoding(&mut self, inst: ir::Inst, isa: &TargetIsa) -> Result<(), Legalize> {
|
||||||
self.dfg.encode(inst, isa).map(
|
self.dfg.encode(inst, isa).map(|e| self.encodings[inst] = e)
|
||||||
|e| { self.encodings[inst] = e; },
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user