From: Chris Lattner Date: Mon, 6 Oct 2003 17:33:39 +0000 (+0000) Subject: Users can never be null X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4e84e7720c333112da24bd4e9d4c7bfb4d446016;p=oota-llvm.git Users can never be null git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8895 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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