mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-15 15:48:38 +00:00
[IR] Stop a -Wsign-compare warning from firing
llvm-svn: 275077
This commit is contained in:
parent
f02633eea9
commit
18cc889bef
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user