Escape IdStrings

This commit is contained in:
Eddie Hung 2019-11-23 10:16:56 -08:00
parent 165f5cb6cf
commit 907c8aeaef
1 changed files with 2 additions and 3 deletions

View File

@ -74,13 +74,12 @@ struct ClkPartPass : public Pass {
for (argidx = 1; argidx < args.size(); argidx++) for (argidx = 1; argidx < args.size(); argidx++)
{ {
if (args[argidx] == "-set_attr" && argidx+2 < args.size()) { if (args[argidx] == "-set_attr" && argidx+2 < args.size()) {
attr_name = args[argidx++]; attr_name = RTLIL::escape_id(args[argidx++]);
attr_value = args[argidx++]; attr_value = args[argidx++];
continue; continue;
} }
if (args[argidx] == "-unpart" && argidx+1 < args.size()) { if (args[argidx] == "-unpart" && argidx+1 < args.size()) {
unpart_mode = true; attr_name = RTLIL::escape_id(args[argidx++]);
attr_name = args[argidx++];
continue; continue;
} }
if (args[argidx] == "-enable") { if (args[argidx] == "-enable") {