From 4e84e7720c333112da24bd4e9d4c7bfb4d446016 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 6 Oct 2003 17:33:39 +0000 Subject: [PATCH] Users can never be null git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8895 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Value.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/VMCore/Value.cpp b/lib/VMCore/Value.cpp index d0fcafbdf01..95670f39826 100644 --- a/lib/VMCore/Value.cpp +++ b/lib/VMCore/Value.cpp @@ -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