mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-07-10 04:24:43 +03:00
ng_width: turn min width check into assert
This commit is contained in:
parent
6f81516bce
commit
cadc7028b1
@ -176,11 +176,7 @@ depth findMaxWidth(const NGHolder &h, const SpecialEdgeFilter &filter,
|
||||
}
|
||||
|
||||
if (d.is_unreachable()) {
|
||||
// If we're actually reachable, we'll have a min width, so we can
|
||||
// return infinity in this case.
|
||||
if (findMinWidth(h, filter, src).is_reachable()) {
|
||||
return depth::infinity();
|
||||
}
|
||||
assert(findMinWidth(h, filter, src).is_unreachable());
|
||||
return d;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user