mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[ownership] Extract out SILOwnershipKind from ValueOwnershipKind into its own type and rename Invalid -> Any.
This makes it easier to understand conceptually why a ValueOwnershipKind with Any ownership is invalid and also allowed me to explicitly document the lattice that relates ownership constraints/value ownership kinds.
This commit is contained in:
@@ -299,7 +299,7 @@ struct CopyPropagationState {
|
||||
: func(F), invalidation(SILAnalysis::InvalidationKind::Nothing) {}
|
||||
|
||||
bool isValueOwned() const {
|
||||
return currDef.getOwnershipKind() == ValueOwnershipKind::Owned;
|
||||
return currDef.getOwnershipKind() == OwnershipKind::Owned;
|
||||
}
|
||||
|
||||
void markInvalid(SILAnalysis::InvalidationKind kind) {
|
||||
|
||||
Reference in New Issue
Block a user