Fix signed/unsigned mismatch warning (#134255)

This commit is contained in:
gbMattN 2025-04-03 15:56:33 +01:00 committed by GitHub
parent c14b6e90bd
commit 61ef286506
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3447,7 +3447,8 @@ static StringRef getAllocaName(AllocaInst *AI) {
if (!isa<MDTuple>(Annotation))
continue;
auto AnnotationTuple = cast<MDTuple>(Annotation);
for (int Index = 0; Index < AnnotationTuple->getNumOperands(); Index++) {
for (unsigned Index = 0; Index < AnnotationTuple->getNumOperands();
Index++) {
// All annotations are strings
auto MetadataString =
cast<MDString>(AnnotationTuple->getOperand(Index));