Make assertion more descriptive
authorChris Lattner <sabre@nondot.org>
Tue, 24 Jun 2003 22:20:19 +0000 (22:20 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 24 Jun 2003 22:20:19 +0000 (22:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6889 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Value.cpp

index ac13159e30aa9f5d53930b055a1c6dcf827aa25e..6cb0b09f5202972f01b8e00d6a542505e0e596fe 100644 (file)
@@ -40,7 +40,7 @@ Value::~Value() {
                 << **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);