mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
PR feedback: use precondition in place of assert
This commit is contained in:
@@ -66,8 +66,8 @@ public class MemoryMap {
|
||||
} else if entry.endAddr <= addr {
|
||||
lowerBound = currentIndex + 1
|
||||
} else {
|
||||
assert(addr >= entry.startAddr)
|
||||
assert(addr < entry.endAddr)
|
||||
precondition(addr >= entry.startAddr)
|
||||
precondition(addr < entry.endAddr)
|
||||
return entry
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user