mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Port COW and LoopRotate to use the new locking-analysis API. NFC.
Swift SVN r26376
This commit is contained in:
@@ -1660,9 +1660,9 @@ class SwiftArrayOptPass : public SILFunctionTransform {
|
||||
|
||||
// We preserve the dominator tree.
|
||||
if (HasChanged) {
|
||||
auto PreservedDT = DA->preserveDomAnalysis(getFunction());
|
||||
DA->lockInvalidation();
|
||||
invalidateAnalysis(SILAnalysis::InvalidationKind::CFG);
|
||||
DA->updateAnalysis(getFunction(), std::move(PreservedDT));
|
||||
DA->unlockInvalidation();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user