Rollup merge of #111250 - spastorino:smir-terminator-2, r=oli-obk

Add Terminator conversion from MIR to SMIR, part #2

r? `@oli-obk`
This commit is contained in:
Matthias Krüger 2023-06-06 22:00:18 +02:00 committed by GitHub
commit 1788d49789
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -330,10 +330,7 @@ fn rustc_terminator_to_terminator(
target: target.as_usize(),
unwind: rustc_unwind_to_unwind(unwind),
},
Yield { .. } => todo!(),
GeneratorDrop => Terminator::GeneratorDrop,
FalseEdge { .. } => todo!(),
FalseUnwind { .. } => todo!(),
InlineAsm { .. } => todo!(),
Yield { .. } | GeneratorDrop | FalseEdge { .. } | FalseUnwind { .. } => unreachable!(),
}
}