base_arch: Fix typo in getClusterPlacement

Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
gatecat 2021-05-06 12:23:28 +01:00
parent c82df9e40d
commit 1bf202adcd

View File

@ -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);
}