mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Users can never be null
llvm-svn: 8895
This commit is contained in:
parent
e6955c77e0
commit
6f939cc824
@ -87,7 +87,7 @@ void Value::uncheckedReplaceAllUsesWith(Value *New) {
|
|||||||
|
|
||||||
|
|
||||||
void Value::killUse(User *U) {
|
void Value::killUse(User *U) {
|
||||||
if (U == 0) return;
|
assert(U != 0 && "Null users are not allowed!");
|
||||||
unsigned i;
|
unsigned i;
|
||||||
|
|
||||||
// Scan backwards through the uses list looking for the user. We do this
|
// Scan backwards through the uses list looking for the user. We do this
|
||||||
|
Loading…
Reference in New Issue
Block a user