From 0582ae99ba75a556d6ff63b254da327d32ba036f Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Fri, 13 Mar 2009 04:39:26 +0000 Subject: Oops...I committed too much. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66867 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp') diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index 9475ffa859..0392338762 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp @@ -179,8 +179,8 @@ std::string DOTGraphTraits::getNodeLabel(const SDNode *Node, } } else if (const DbgStopPointSDNode *D = dyn_cast(Node)) { DICompileUnit CU(cast(D->getCompileUnit())); - const char *FN = CU.getFilename(); - Op += ": " + std::string(FN ? FN : ""); + std::string FN; + Op += ": " + CU.getFilename(FN); Op += ":" + utostr(D->getLine()); if (D->getColumn() != 0) Op += ":" + utostr(D->getColumn()); -- cgit v1.2.3-18-g5258