Fix signed/unsigned comparison warning; NFC

llvm-svn: 305262
This commit is contained in:
George Burgess IV 2017-06-13 01:28:49 +00:00
parent 0bb38885e5
commit f613749382
1 changed files with 1 additions and 1 deletions

View File

@ -3561,7 +3561,7 @@ bool NewGVN::eliminateInstructions(Function &F) {
// TODO: It would be faster to use getNumIncomingBlocks() on a phi node in
// the block and subtract the pred count, but it's more complicated.
if (ReachablePredCount.lookup(BB) !=
std::distance(pred_begin(BB), pred_end(BB))) {
unsigned(std::distance(pred_begin(BB), pred_end(BB)))) {
for (auto II = BB->begin(); isa<PHINode>(II); ++II) {
auto &PHI = cast<PHINode>(*II);
ReplaceUnreachablePHIArgs(PHI, BB);