From 1b5287af5908e71edd07d9de2d6872f3c2a389ed Mon Sep 17 00:00:00 2001 From: andyfox-rushc Date: Sun, 10 Sep 2023 14:20:30 -0700 Subject: [PATCH] cpa_carry array added to heap --- passes/techmap/multpass.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/passes/techmap/multpass.cc b/passes/techmap/multpass.cc index 00dcc6e27..9e97fc674 100644 --- a/passes/techmap/multpass.cc +++ b/passes/techmap/multpass.cc @@ -1412,7 +1412,7 @@ struct MultPassWorker { } // instantiate the cpa - RTLIL::Wire *cpa_carry[z_sz]; + RTLIL::Wire **cpa_carry = new RTLIL::Wire *[z_sz]; for (int cix = 0; cix < z_sz; cix++) { std::string cpa_cix_name = "cpa_carry_" + std::to_string(cix) + "_"; @@ -1497,6 +1497,7 @@ struct MultPassWorker { delete[] fa_sum_n; delete[] fa_carry_n; + delete[] cpa_carry; } };