diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2022-06-03 08:38:16 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2022-06-03 08:38:16 +0200 |
commit | d88a5d26b7849e25dceb3854070dd56f9044c7ee (patch) | |
tree | 956261fd070d76505600127888a12d16ba21caa7 /passes | |
parent | 1eb1bc441ba1bc6d4903496b2765095bb6ec8037 (diff) | |
download | yosys-d88a5d26b7849e25dceb3854070dd56f9044c7ee.tar.gz yosys-d88a5d26b7849e25dceb3854070dd56f9044c7ee.tar.bz2 yosys-d88a5d26b7849e25dceb3854070dd56f9044c7ee.zip |
Fix preventing show crashing with newer graphviz
Diffstat (limited to 'passes')
-rw-r--r-- | passes/cmds/show.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/passes/cmds/show.cc b/passes/cmds/show.cc index 35aa410e4..43deba47b 100644 --- a/passes/cmds/show.cc +++ b/passes/cmds/show.cc @@ -191,7 +191,12 @@ struct ShowWorker std::string str; for (char ch : id) { - if (ch == '\\' || ch == '"') + if (ch == '\\') { + // new graphviz have bug with escaping '\' + str += "╲"; + continue; + } + if (ch == '"') str += "\\"; str += ch; } |