diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index b4fe80caff6..c5adc5000db 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp @@ -132,7 +132,7 @@ namespace llvm { std::string DOTGraphTraits::getNodeLabel(const SDNode *Node, const SelectionDAG *G) { - DOTGraphTraits::getSimpleNodeLabel (Node, G); + return DOTGraphTraits::getSimpleNodeLabel (Node, G); } diff --git a/lib/CompilerDriver/CompilationGraph.cpp b/lib/CompilerDriver/CompilationGraph.cpp index 5781cdad906..3e6e050d686 100644 --- a/lib/CompilerDriver/CompilationGraph.cpp +++ b/lib/CompilerDriver/CompilationGraph.cpp @@ -471,6 +471,7 @@ namespace llvm { struct DOTGraphTraits : public DefaultDOTGraphTraits { + DOTGraphTraits (bool isSimple=false) : DefaultDOTGraphTraits(isSimple) {} template static std::string getNodeLabel(const Node* N, const GraphType&)