Skip to content

Commit 94acfd2

Browse files
committed
[region-isolation] Enable address walker verification on AllocPackInst.
This provides a guarantee that the address walker will not miss walking any addresses due to the walker not being updated.
1 parent f531f70 commit 94acfd2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/SIL/Verifier/SILVerifier.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1627,6 +1627,7 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
16271627
requireAddressType(SILPackType, AI->getType(),
16281628
"result of alloc_pack must be an address of "
16291629
"lowered pack type");
1630+
checkAddressWalkerCanVisitAllTransitiveUses(AI);
16301631
}
16311632

16321633
void checkAllocRefBase(AllocRefInstBase *ARI) {

0 commit comments

Comments
 (0)