[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 f02633eea9
commit 18cc889bef

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;