aboutsummaryrefslogtreecommitdiffstats
path: root/passes
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2022-06-03 08:38:16 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2022-06-03 08:38:16 +0200
commitd88a5d26b7849e25dceb3854070dd56f9044c7ee (patch)
tree956261fd070d76505600127888a12d16ba21caa7 /passes
parent1eb1bc441ba1bc6d4903496b2765095bb6ec8037 (diff)
downloadyosys-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.cc7
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 += "&#9586;";
+ continue;
+ }
+ if (ch == '"')
str += "\\";
str += ch;
}