update comment

This commit is contained in:
Stan Lee 2026-05-28 01:22:59 -07:00
parent e9873f822e
commit 3d21f58f24
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ struct RegRenamePass : public Pass {
size_t open = signal_name.rfind('[');
if (open != std::string::npos) {
std::string inner = signal_name.substr(open + 1, signal_name.size() - open - 2);
// Ensure that signal_bits is not populated with non-digits
// Ensure that signal_bits is not populated with non-indexed characters.
if (!inner.empty() && inner.find_first_not_of("0123456789:") == std::string::npos) {
signal_bits = signal_name.substr(open);
signal_name.erase(open);