Skip to content

Commit 004020b

Browse files
committed
- update borrowed-from instruction and use borrowed-from in BorrowUtils
1 parent 90e2e54 commit 004020b

37 files changed

+832
-421
lines changed

SwiftCompilerSources/Sources/Optimizer/PassManager/PassRegistration.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ private func registerSwiftPasses() {
114114
registerPass(rangeDumper, { rangeDumper.run($0) })
115115
registerPass(runUnitTests, { runUnitTests.run($0) })
116116
registerPass(testInstructionIteration, { testInstructionIteration.run($0) })
117+
registerPass(updateBorrowedFromPass, { updateBorrowedFromPass.run($0) })
117118
}
118119

119120
private func registerSwiftAnalyses() {
@@ -123,4 +124,5 @@ private func registerSwiftAnalyses() {
123124

124125
private func registerUtilities() {
125126
registerVerifier()
127+
registerBorrowedFromUpdater()
126128
}

0 commit comments

Comments
 (0)