[IR] Stop a -Wsign-compare warning from firing

llvm-svn: 275077
This commit is contained in:
David Majnemer 2016-07-11 17:09:06 +00:00
parent 59a6e24d8d
commit dd8f6bdd46
1 changed files with 1 additions and 1 deletions

View File

@ -1328,7 +1328,7 @@ bool Instruction::extractProfTotalWeight(uint64_t &TotalVal) {
return false;
TotalVal = 0;
for (int i = 1; i < ProfileData->getNumOperands(); i++) {
for (unsigned i = 1; i < ProfileData->getNumOperands(); i++) {
auto *V = mdconst::dyn_extract<ConstantInt>(ProfileData->getOperand(i));
if (!V)
return false;