Skip to content

Commit a8cbf92

Browse files
author
David Ungar
authored
Merge pull request #551 from davidungar/small-opt
[Incremental, Optimization] Only verifyUseIsOK in a debug build.
2 parents 62f5a47 + b3c280c commit a8cbf92

File tree

1 file changed

+1
-1
lines changed
  • Sources/SwiftDriver/IncrementalCompilation/ModuleDependencyGraphParts

1 file changed

+1
-1
lines changed

Sources/SwiftDriver/IncrementalCompilation/ModuleDependencyGraphParts/NodeFinder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ extension ModuleDependencyGraph.NodeFinder {
131131

132132
/// record def-use, return if is new use
133133
mutating func record(def: DependencyKey, use: Graph.Node) -> Bool {
134-
verifyUseIsOK(use)
134+
assert(verifyUseIsOK(use))
135135
return usesByDef.insertValue(use, forKey: def)
136136
}
137137
}

0 commit comments

Comments
 (0)