Users can never be null
authorChris Lattner <sabre@nondot.org>
Mon, 6 Oct 2003 17:33:39 +0000 (17:33 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 6 Oct 2003 17:33:39 +0000 (17:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8895 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Value.cpp

index d0fcafbdf019bdd27942e67ef9171fab3728f2d6..95670f398262776d75501397a60bfac4a3b901de 100644 (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