aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/placer_heap.cc3
m---------tests0
2 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());
diff --git a/tests b/tests
-Subproject 32a683071758ee59d47e2c5cb29c87882993fac
+Subproject fb53a97322c32620385af6657596681c0044a32