diff --git a/llvm/include/llvm/Support/GraphWriter.h b/llvm/include/llvm/Support/GraphWriter.h index ec64f73fe8eb..a5165f44d54e 100644 --- a/llvm/include/llvm/Support/GraphWriter.h +++ b/llvm/include/llvm/Support/GraphWriter.h @@ -78,7 +78,7 @@ class GraphWriter { if (i) O << "|"; - O << "" << label; + O << "" << DOT::EscapeString(label); } if (EI != EE && hasEdgeSourceLabels)