From 269b70c0f90187718b91bdf6d779e347f35b1645 Mon Sep 17 00:00:00 2001 From: Stan Lee Date: Wed, 21 Jan 2026 12:32:38 -0800 Subject: [PATCH] compiles --- passes/silimate/reg_rename.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/passes/silimate/reg_rename.cc b/passes/silimate/reg_rename.cc index a65f34b06..e1ec01cec 100644 --- a/passes/silimate/reg_rename.cc +++ b/passes/silimate/reg_rename.cc @@ -116,11 +116,12 @@ struct RegRenamePass : public Pass { if (isMultiBit) { // Index of the register + int index = 0; try { - int index = std::stoi(match[2].str()); + index = std::stoi(match[2].str()); } catch (const std::exception &e) { log_warning("Failed to convert index %s to integer in register %s: %s\n", - match[2].str().c_str(), cell->name.c_str(), e.what()); + match[2].str().c_str(), log_id(cell), e.what()); continue; }