File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
lib/SILOptimizer/LoopTransforms Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 64
64
#include " swift/SILOptimizer/PassManager/Transforms.h"
65
65
#include " swift/SILOptimizer/Utils/BasicBlockOptUtils.h"
66
66
#include " swift/SILOptimizer/Utils/CFGOptUtils.h"
67
+ #include " swift/SILOptimizer/Utils/OwnershipOptUtils.h"
67
68
#include " swift/SILOptimizer/Utils/LoopUtils.h"
68
69
#include " swift/SILOptimizer/Utils/SILSSAUpdater.h"
69
70
#include " llvm/ADT/SmallSet.h"
@@ -835,6 +836,8 @@ class SwiftArrayPropertyOptPass : public SILFunctionTransform {
835
836
if (getFunction ()->getModule ().getOptions ().VerifyAll )
836
837
getFunction ()->verifyCriticalEdges ();
837
838
839
+ updateBorrowedFrom (getPassManager (), Fn);
840
+
838
841
// We preserve the dominator tree. Let's invalidate everything
839
842
// else.
840
843
DA->lockInvalidation ();
Original file line number Diff line number Diff line change 1
- // RUN: %target-swift-frontend -O %s -emit-sil -o /dev/null
1
+ // RUN: %target-swift-frontend -O %s -enable-ossa-modules - emit-sil -o /dev/null
2
2
3
3
public class X { }
4
4
You can’t perform that action at this time.
0 commit comments