1
Fork 0

tut tut tut

This commit is contained in:
Ellen 2022-04-27 08:51:33 +01:00
parent de1026a67b
commit f697955c1e
8 changed files with 16 additions and 29 deletions

View file

@ -336,9 +336,7 @@ fn evaluate_candidate<'tcx>(
Some(poss)
}
};
let Some((_, child)) = targets.iter().next() else {
return None
};
let (_, child) = targets.iter().next()?;
let child_terminator = &bbs[child].terminator();
let TerminatorKind::SwitchInt {
switch_ty: child_ty,