mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
[IR] Simplify removeDeadConstantUsers. NFC
llvm-svn: 368833
This commit is contained in:
parent
240ea59b3e
commit
d988771fab
@ -575,13 +575,10 @@ void Constant::removeDeadConstantUsers() const {
|
||||
}
|
||||
|
||||
// If the constant was dead, then the iterator is invalidated.
|
||||
if (LastNonDeadUser == E) {
|
||||
if (LastNonDeadUser == E)
|
||||
I = user_begin();
|
||||
if (I == E) break;
|
||||
} else {
|
||||
I = LastNonDeadUser;
|
||||
++I;
|
||||
}
|
||||
else
|
||||
I = std::next(LastNonDeadUser);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user