Make error report a little more useful
authorChris Lattner <sabre@nondot.org>
Fri, 28 Sep 2001 00:06:52 +0000 (00:06 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 28 Sep 2001 00:06:52 +0000 (00:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@657 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Value.cpp

index bef0d4466ff96be26a97583b697f59a17e864929..d40aaca2773b67bbaa208fa1bc06347c566c3a2a 100644 (file)
@@ -33,6 +33,7 @@ Value::~Value() {
   // a <badref>
   //
   if (Uses.begin() != Uses.end()) {
+    cerr << "While deleting: " << this;
     for (use_const_iterator I = Uses.begin(); I != Uses.end(); ++I)
       cerr << "Use still stuck around after Def is destroyed:" << *I << endl;
   }