aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/base_arch.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/base_arch.h b/common/base_arch.h
index 8ed77790..e9cc8cf0 100644
--- a/common/base_arch.h
+++ b/common/base_arch.h
@@ -428,7 +428,7 @@ template <typename R> struct BaseArch : ArchAPI<R>
return result;
});
BelId child_bel = this->getBelByLocation(child_loc);
- if (child_bel == BelId() || !this->isValidBelForCellType(child->type, root_bel))
+ if (child_bel == BelId() || !this->isValidBelForCellType(child->type, child_bel))
return false;
placement.emplace_back(child, child_bel);
}