Skip to content

Commit 21fedfa

Browse files
committed
Verifier: fix a stupid bug in borrowed-from verification
... which made the verification useless.
1 parent 80a0da9 commit 21fedfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SwiftCompilerSources/Sources/Optimizer/Utilities/Verifier.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ extension BorrowedFromInst : VerifyableInstruction {
6767
var existingEVs = ValueSet(insertContentsOf: enclosingValues, context)
6868
defer { existingEVs.deinitialize() }
6969

70-
for computedEV in enclosingValues {
70+
for computedEV in computedEVs {
7171
require(existingEVs.contains(computedEV),
7272
"\(computedEV)\n missing in enclosing values of \(self)")
7373
}

0 commit comments

Comments
 (0)