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 3b0e5bb commit 671db08Copy full SHA for 671db08
tools/swift-inspect/Sources/SwiftInspectLinux/MemoryMap.swift
@@ -66,8 +66,8 @@ public class MemoryMap {
66
} else if entry.endAddr <= addr {
67
lowerBound = currentIndex + 1
68
} else {
69
- assert(addr >= entry.startAddr)
70
- assert(addr < entry.endAddr)
+ precondition(addr >= entry.startAddr)
+ precondition(addr < entry.endAddr)
71
return entry
72
}
73
tools/swift-inspect/Sources/SwiftInspectLinux/SymbolCache.swift
@@ -64,8 +64,8 @@ public class SymbolCache {
64
} else if entry.end <= address {
65
- assert(address >= entry.start)
- assert(address < entry.end)
+ precondition(address >= entry.start)
+ precondition(address < entry.end)
0 commit comments