aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/placer_heap.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/placer_heap.cc b/common/placer_heap.cc
index 7caf536d..f9b639f8 100644
--- a/common/placer_heap.cc
+++ b/common/placer_heap.cc
@@ -100,7 +100,8 @@ template <typename T> struct EquationSystem
void solve(std::vector<T> &x)
{
using namespace Eigen;
-
+ if (x.empty())
+ return;
NPNR_ASSERT(x.size() == A.size());
VectorXd vx(x.size()), vb(rhs.size());