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:
Andrew Trick
2017-04-09 17:22:54 -07:00
parent ce9912a4ea
commit 41b388d954
2 changed files with 60 additions and 1 deletions

View File

@@ -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) {