[llvm-commits] CVS: llvm/lib/VMCore/Value.cpp

Chris Lattner lattner at cs.uiuc.edu
Mon Oct 6 12:34:02 PDT 2003


Changes in directory llvm/lib/VMCore:

Value.cpp updated: 1.35 -> 1.36

---
Log message:

Users can never be null


---
Diffs of the changes:

Index: llvm/lib/VMCore/Value.cpp
diff -u llvm/lib/VMCore/Value.cpp:1.35 llvm/lib/VMCore/Value.cpp:1.36
--- llvm/lib/VMCore/Value.cpp:1.35	Thu Oct  2 14:44:40 2003
+++ llvm/lib/VMCore/Value.cpp	Mon Oct  6 12:33:39 2003
@@ -87,7 +87,7 @@
 
 
 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





More information about the llvm-commits mailing list