[llvm-commits] CVS: llvm/lib/VMCore/Value.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Jun 24 17:21:01 PDT 2003


Changes in directory llvm/lib/VMCore:

Value.cpp updated: 1.31 -> 1.32

---
Log message:

Make assertion more descriptive


---
Diffs of the changes:

Index: llvm/lib/VMCore/Value.cpp
diff -u llvm/lib/VMCore/Value.cpp:1.31 llvm/lib/VMCore/Value.cpp:1.32
--- llvm/lib/VMCore/Value.cpp:1.31	Thu Feb 13 13:46:22 2003
+++ llvm/lib/VMCore/Value.cpp	Tue Jun 24 17:20:19 2003
@@ -40,7 +40,7 @@
                 << **I << "\n";
   }
 #endif
-  assert(Uses.begin() == Uses.end());
+  assert(Uses.begin() == Uses.end() &&"Uses remain when a value is destroyed!");
 
   // There should be no uses of this object anymore, remove it.
   LeakDetector::removeGarbageObject(this);





More information about the llvm-commits mailing list