Users can never be null

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8895 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-10-06 17:33:39 +00:00
parent 4bb7c02eba
commit 4e84e7720c

View File

@ -87,7 +87,7 @@ void Value::uncheckedReplaceAllUsesWith(Value *New) {
void Value::killUse(User *U) {
if (U == 0) return;
assert(U != 0 && "Null users are not allowed!");
unsigned i;
// Scan backwards through the uses list looking for the user. We do this