mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SIL] Added strong_copy_weak_value.
The new instruction unwraps an `@sil_weak` box and produces an owned value. It is only legal in opaque values mode and is transformed by `AddressLowering` to `load_weak`.
This commit is contained in:
@@ -210,13 +210,9 @@ static bool hasOpaqueArchetype(TypeExpansionContext context,
|
||||
case SILInstructionKind::MarkUnresolvedReferenceBindingInst:
|
||||
case SILInstructionKind::CopyableToMoveOnlyWrapperValueInst:
|
||||
case SILInstructionKind::MoveOnlyWrapperToCopyableValueInst:
|
||||
#define UNCHECKED_REF_STORAGE(Name, ...) \
|
||||
case SILInstructionKind::StrongCopy##Name##ValueInst:
|
||||
#define ALWAYS_OR_SOMETIMES_LOADABLE_CHECKED_REF_STORAGE(Name, ...) \
|
||||
#define REF_STORAGE(Name, ...) \
|
||||
case SILInstructionKind::StrongCopy##Name##ValueInst:
|
||||
#include "swift/AST/ReferenceStorage.def"
|
||||
#undef UNCHECKED_REF_STORAGE
|
||||
#undef ALWAYS_OR_SOMETIMES_LOADABLE_CHECKED_REF_STORAGE
|
||||
case SILInstructionKind::UncheckedOwnershipConversionInst:
|
||||
case SILInstructionKind::IsUniqueInst:
|
||||
case SILInstructionKind::IsEscapingClosureInst:
|
||||
|
||||
Reference in New Issue
Block a user