diff options
author | Chris Lattner <sabre@nondot.org> | 2003-10-06 17:33:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-10-06 17:33:39 +0000 |
commit | 4e84e7720c333112da24bd4e9d4c7bfb4d446016 (patch) | |
tree | d2bbe675b62db67124600895af653eae23421d27 /lib/VMCore | |
parent | 4bb7c02eba2e83288d0ab4bc9d3febbfcb131804 (diff) | |
download | llvm-4e84e7720c333112da24bd4e9d4c7bfb4d446016.tar.gz llvm-4e84e7720c333112da24bd4e9d4c7bfb4d446016.tar.bz2 llvm-4e84e7720c333112da24bd4e9d4c7bfb4d446016.tar.xz |
Users can never be null
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8895 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/Value.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Value.cpp b/lib/VMCore/Value.cpp index d0fcafbdf0..95670f3982 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 |