Skip to content

Commit b07b9de

Browse files
committed
Modified check for if region is empty.
1 parent ea4e6df commit b07b9de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vpr/src/base/region.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ bool Region::locked() {
3838
}
3939

4040
bool Region::empty() {
41-
return region_bounds.empty();
41+
//return region_bounds.empty();
42+
return region_bounds.xmax() < region_bounds.xmin() || region_bounds.ymax() < region_bounds.ymin();
4243
}
4344

4445
bool Region::is_loc_in_reg(t_pl_loc loc) {

0 commit comments

Comments
 (0)