1
0
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:
Fangrui Song 2019-08-14 11:38:45 +00:00
parent 240ea59b3e
commit d988771fab

View File

@ -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);
}
}