Skip to content

Commit 3838f27

Browse files
committed
Avoid calling IdString::c_str() in opt_clean
1 parent 0f8c72c commit 3838f27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

passes/opt/opt_clean.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ bool compare_signals(RTLIL::SigBit &s1, RTLIL::SigBit &s2, SigPool &regs, SigPoo
283283
if (attrs1 != attrs2)
284284
return attrs2 > attrs1;
285285

286-
return strcmp(w2->name.c_str(), w1->name.c_str()) < 0;
286+
return w2->name.lt_by_name(w1->name);
287287
}
288288

289289
bool check_public_name(RTLIL::IdString id)

0 commit comments

Comments
 (0)