Use SmallVec in SwitchTargets

This allows building common SwitchTargets (eg. for `if`s) without
allocation.
This commit is contained in:
Jonas Schievink
2020-10-11 01:14:12 +02:00
parent 432535da2b
commit 9a47f74bfe
5 changed files with 14 additions and 15 deletions

View File

@@ -227,5 +227,5 @@ struct OptimizationInfo<'tcx> {
/// Either Eq or Ne
op: BinOp,
/// Current targets used in the switch
targets: SwitchTargets<'tcx>,
targets: SwitchTargets,
}