From d88a5d26b7849e25dceb3854070dd56f9044c7ee Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Fri, 3 Jun 2022 08:38:16 +0200 Subject: [PATCH] Fix preventing show crashing with newer graphviz --- passes/cmds/show.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; } -- 2.30.2