mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[AST] Reference ownership macro fixes and cleanup
This simplifies some boilerplate, and in particular, some SIL verifier logic; and fixes a couple bugs related to always loadable reference storage types.
This commit is contained in:
@@ -532,7 +532,7 @@ struct OwnershipQualifiedKindVisitor : SILInstructionVisitor<OwnershipQualifiedK
|
||||
QUALIFIED_INST(LoadBorrowInst)
|
||||
QUALIFIED_INST(CopyValueInst)
|
||||
QUALIFIED_INST(DestroyValueInst)
|
||||
#define SOMETIMES_LOADABLE_CHECKED_REF_STORAGE(Name, ...) \
|
||||
#define ALWAYS_OR_SOMETIMES_LOADABLE_CHECKED_REF_STORAGE(Name, ...) \
|
||||
QUALIFIED_INST(Copy##Name##ValueInst)
|
||||
#include "swift/AST/ReferenceStorage.def"
|
||||
#undef QUALIFIED_INST
|
||||
|
||||
Reference in New Issue
Block a user