summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/include/llvm/Support/GraphWriter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/GraphWriter.h b/llvm/include/llvm/Support/GraphWriter.h
index 14a70cb1892..dab09e57c6a 100644
--- a/llvm/include/llvm/Support/GraphWriter.h
+++ b/llvm/include/llvm/Support/GraphWriter.h
@@ -87,7 +87,7 @@ public:
if (!Name.empty())
O << "digraph " << Name << " {\n";
else if (!GraphName.empty())
- O << "digraph " << GraphName << " {\n";
+ O << "digraph \"" << DOT::EscapeString(GraphName) << "\" {\n";
else
O << "digraph unnamed {\n";
OpenPOWER on IntegriCloud