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:
Doug Gregor
2025-04-20 02:31:48 -07:00
committed by GitHub
33 changed files with 579 additions and 388 deletions

View File

@@ -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;