We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d5e607 commit df62235Copy full SHA for df62235
SwiftCompilerSources/Sources/Optimizer/Utilities/Verifier.swift
@@ -164,7 +164,11 @@ private struct MutatingUsesWalker : AddressDefUseWalker {
164
165
for use in startInst.uses {
166
if let phi = Phi(using: use) {
167
- linearLiveranges.pushIfNotVisited(phi.borrowedFrom!)
+ if let bf = phi.borrowedFrom {
168
+ linearLiveranges.pushIfNotVisited(bf)
169
+ } else {
170
+ require(false, "missing borrowed-from for \(phi.value)")
171
+ }
172
}
173
174
0 commit comments