From 1a9454a3d23564e59b411372d863de899387b70c Mon Sep 17 00:00:00 2001 From: Francis Couture-Harpin Date: Wed, 18 Jun 2025 16:44:41 -0400 Subject: [PATCH] imatrix : avoid returning from void function save_imatrix --- tools/imatrix/imatrix.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/imatrix/imatrix.cpp b/tools/imatrix/imatrix.cpp index 1e640027a..540687370 100644 --- a/tools/imatrix/imatrix.cpp +++ b/tools/imatrix/imatrix.cpp @@ -348,7 +348,8 @@ void IMatrixCollector::save_imatrix(int32_t n_chunk) const { // TODO: use the new format by default also for .imatrix if (!str_has_suffix(fname, ".gguf")) { - return this->save_imatrix_legacy(n_chunk); + this->save_imatrix_legacy(n_chunk); + return; } if (n_chunk > 0) {