Skip to content

Commit a5f44c5

Browse files
authored
Merge pull request #16825 from atrick/fix-accessenforce
2 parents d1bdec8 + 0d3cf75 commit a5f44c5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/SILOptimizer/Transforms/AccessEnforcementOpts.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,9 @@ void AccessConflictAnalysis::identifyBeginAccesses() {
360360
if (!beginAccess)
361361
continue;
362362

363+
if (beginAccess->getEnforcement() != SILAccessEnforcement::Dynamic)
364+
continue;
365+
363366
// The accessed base is expected to be valid for begin_access, but for
364367
// now, since this optimization runs at the end of the pipeline, we
365368
// gracefully ignore unrecognized source address patterns, which show up

0 commit comments

Comments
 (0)