Port COW and LoopRotate to use the new locking-analysis API. NFC.

Swift SVN r26376
This commit is contained in:
Nadav Rotem
2015-03-20 22:53:09 +00:00
parent 5ad8aeef25
commit 2781e93d9f
2 changed files with 7 additions and 10 deletions

View File

@@ -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();
}
}