mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #72577 from jckarter/enable-borrowing-switch-backend
Use the `BorrowingSwitch` implementation for all noncopyable switches.
This commit is contained in:
@@ -289,6 +289,10 @@ extension Instruction {
|
||||
if bi.id == .OnFastPath {
|
||||
return false
|
||||
}
|
||||
case is UncheckedEnumDataInst:
|
||||
// Don't remove UncheckedEnumDataInst in OSSA in case it is responsible
|
||||
// for consuming an enum value.
|
||||
return !parentFunction.hasOwnership
|
||||
default:
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user