Rollup merge of #100907 - Nilstrieb:unrachable-typo-lol, r=Dylan-DPC
Fix typo in UnreachableProp r? ``@Dylan-DPC``
This commit is contained in:
commit
12c1ac0a67
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ where
|
||||||
TerminatorKind::Unreachable
|
TerminatorKind::Unreachable
|
||||||
} else if is_unreachable(otherwise) {
|
} else if is_unreachable(otherwise) {
|
||||||
// If there are multiple targets, don't delete unreachable branches (like an unreachable otherwise)
|
// If there are multiple targets, don't delete unreachable branches (like an unreachable otherwise)
|
||||||
// unless otherwise is unrachable, in which case deleting a normal branch causes it to be merged with
|
// unless otherwise is unreachable, in which case deleting a normal branch causes it to be merged with
|
||||||
// the otherwise, keeping its unreachable.
|
// the otherwise, keeping its unreachable.
|
||||||
// This looses information about reachability causing worse codegen.
|
// This looses information about reachability causing worse codegen.
|
||||||
// For example (see src/test/codegen/match-optimizes-away.rs)
|
// For example (see src/test/codegen/match-optimizes-away.rs)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue