[SR-7043] Remove duplicate if statement

This commit is contained in:
Alex Blewitt
2018-02-20 19:25:10 +00:00
parent 4d9e1b0e87
commit b13c8dede3

View File

@@ -2367,9 +2367,7 @@ class SwiftArrayOptPass : public SILFunctionTransform {
DT, nullptr);
DEBUG(getFunction()->viewCFG());
}
if (HasChanged) {
// We preserve the dominator tree. Let's invalidate everything
// else.
DA->lockInvalidation();