mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[AST] Explicitly track things marked __owned.
This commit is contained in:
@@ -2523,6 +2523,8 @@ static uint8_t getRawStableVarDeclSpecifier(swift::VarDecl::Specifier sf) {
|
||||
return uint8_t(serialization::VarDeclSpecifier::InOut);
|
||||
case swift::VarDecl::Specifier::Shared:
|
||||
return uint8_t(serialization::VarDeclSpecifier::Shared);
|
||||
case swift::VarDecl::Specifier::Owned:
|
||||
return uint8_t(serialization::VarDeclSpecifier::Owned);
|
||||
}
|
||||
llvm_unreachable("bad variable decl specifier kind");
|
||||
}
|
||||
@@ -3495,6 +3497,7 @@ static uint8_t getRawStableValueOwnership(swift::ValueOwnership ownership) {
|
||||
SIMPLE_CASE(ValueOwnership, Default)
|
||||
SIMPLE_CASE(ValueOwnership, InOut)
|
||||
SIMPLE_CASE(ValueOwnership, Shared)
|
||||
SIMPLE_CASE(ValueOwnership, Owned)
|
||||
}
|
||||
llvm_unreachable("bad ownership kind");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user