mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #80933 from DougGregor/safe-nested-in-unsafe-fixes
[Strict memory safety] Improve handling of safe types nested within unsafe ones
This commit is contained in:
@@ -318,6 +318,11 @@ public:
|
||||
Bits &= ~HasDependentMember;
|
||||
}
|
||||
|
||||
/// Remove the IsUnsafe property from this set.
|
||||
void removeIsUnsafe() {
|
||||
Bits &= ~IsUnsafe;
|
||||
}
|
||||
|
||||
/// Test for a particular property in this set.
|
||||
bool operator&(Property prop) const {
|
||||
return Bits & prop;
|
||||
|
||||
Reference in New Issue
Block a user