Print the name, not a pointer.
authorNick Lewycky <nicholas@mxc.ca>
Sat, 1 Mar 2008 17:20:55 +0000 (17:20 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sat, 1 Mar 2008 17:20:55 +0000 (17:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47796 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Value.cpp

index 9f8f56e1a7482d9d6c344fe8dd7612cae725e690..a61a1a02472765c08af97da068790177a5542176 100644 (file)
@@ -53,7 +53,7 @@ Value::~Value() {
   // a <badref>
   //
   if (!use_empty()) {
-    DOUT << "While deleting: " << *Ty << " %" << Name << "\n";
+    DOUT << "While deleting: " << *Ty << " %" << getNameStr() << "\n";
     for (use_iterator I = use_begin(), E = use_end(); I != E; ++I)
       DOUT << "Use still stuck around after Def is destroyed:"
            << **I << "\n";