Make get_mach_backend non-optional

This commit is contained in:
bjorn3
2022-01-03 19:32:42 +01:00
parent b3aa692a44
commit e98a85e1e2
4 changed files with 13 additions and 55 deletions

View File

@@ -55,8 +55,8 @@ impl TargetIsa for TargetIsaAdapter {
self.backend.isa_flags()
}
fn get_mach_backend(&self) -> Option<&dyn MachBackend> {
Some(&*self.backend)
fn get_mach_backend(&self) -> &dyn MachBackend {
&*self.backend
}
fn unsigned_add_overflow_condition(&self) -> ir::condcodes::IntCC {