From: Hartmut Kaiser Date: Sun, 16 Sep 2007 00:28:28 +0000 (+0000) Subject: Fixed two problems VC++ revealed in release mode. Please verify. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bd250b44d60622e7c0b60c6def6f6fe7e347addf;p=clang Fixed two problems VC++ revealed in release mode. Please verify. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41995 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/AST/CFG.cpp b/AST/CFG.cpp index 268fc062e4..1f08e60a3f 100644 --- a/AST/CFG.cpp +++ b/AST/CFG.cpp @@ -1292,6 +1292,7 @@ template<> struct DOTGraphTraits : public DefaultDOTGraphTraits { static std::string getNodeLabel(const CFGBlock* Node, const CFG* Graph) { +#ifndef NDEBUG std::ostringstream Out; print_block(Out,Graph, *Node, GraphHelper, false); std::string OutStr = Out.str(); @@ -1306,6 +1307,9 @@ struct DOTGraphTraits : public DefaultDOTGraphTraits { } return OutStr; +#else + return ""; +#endif } }; } // end namespace llvm