Make assertion more descriptive

llvm-svn: 6889
This commit is contained in:
Chris Lattner 2003-06-24 22:20:19 +00:00
parent 8e92c2a5be
commit ade75cea50

View 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);