mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Verify support for -enforce-exclusivity=checked.
Fix a verifier assert and add a test case for begin/end access markers.
This commit is contained in:
@@ -1263,7 +1263,8 @@ public:
|
||||
isa<ProjectBoxInst>(op) ||
|
||||
isa<RefElementAddrInst>(op) ||
|
||||
isa<SILFunctionArgument>(op) ||
|
||||
isa<BeginAccessInst>(op),
|
||||
isa<BeginAccessInst>(op) ||
|
||||
isa<MarkUninitializedInst>(op),
|
||||
"begin_access operand must be a root address derivation");
|
||||
|
||||
if (BAI->getModule().getStage() != SILStage::Raw) {
|
||||
|
||||
Reference in New Issue
Block a user