Simplify CxxValueSemanticsKind

This commit is contained in:
susmonteiro
2025-11-20 12:35:58 +00:00
parent de52134e29
commit 791194b0ff
4 changed files with 54 additions and 61 deletions

View File

@@ -575,15 +575,7 @@ SourceLoc extractNearestSourceLoc(EscapabilityLookupDescriptor desc);
// When a reference type is copied, the pointers value is copied rather than
// the objects storage. This means reference types can be imported as
// copyable to Swift, even when they are non-copyable in C++.
enum class CxxValueSemanticsKind {
Unknown,
Copyable,
MoveOnly,
// A record that is either not copyable/movable or not destructible.
MissingLifetimeOperation,
// A record that has no copy and no move operations
UnavailableConstructors,
};
enum class CxxValueSemanticsKind { Unknown, Copyable, MoveOnly };
struct CxxValueSemanticsDescriptor final {
const clang::Type *type;