From d0ab283296816e6091e833f0afe60fb1dc31c7fb Mon Sep 17 00:00:00 2001 From: mszelwiga Date: Fri, 8 Nov 2024 15:41:20 +0100 Subject: [PATCH] Fix setting bits of parameters in setundef pass --- passes/cmds/setundef.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passes/cmds/setundef.cc b/passes/cmds/setundef.cc index 4ba58036b66..dce33c05bb5 100644 --- a/passes/cmds/setundef.cc +++ b/passes/cmds/setundef.cc @@ -243,7 +243,7 @@ struct SetundefPass : public Pass { { for (auto *cell : module->selected_cells()) { for (auto ¶meter : cell->parameters) { - for (auto bit : parameter.second) { + for (auto &bit : parameter.second.bits()) { if (bit > RTLIL::State::S1) bit = worker.next_bit(); }