projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bb7c02
)
Users can never be null
author
Chris Lattner
<sabre@nondot.org>
Mon, 6 Oct 2003 17:33:39 +0000
(17:33 +0000)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/lib/VMCore/Value.cpp
b/lib/VMCore/Value.cpp
index d0fcafbdf019bdd27942e67ef9171fab3728f2d6..95670f398262776d75501397a60bfac4a3b901de 100644
(file)
--- 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