Fix signed/unsigned mismatch warning (#134255)
This commit is contained in:
@@ -3447,7 +3447,8 @@ static StringRef getAllocaName(AllocaInst *AI) {
|
|||||||
if (!isa<MDTuple>(Annotation))
|
if (!isa<MDTuple>(Annotation))
|
||||||
continue;
|
continue;
|
||||||
auto AnnotationTuple = cast<MDTuple>(Annotation);
|
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
|
// All annotations are strings
|
||||||
auto MetadataString =
|
auto MetadataString =
|
||||||
cast<MDString>(AnnotationTuple->getOperand(Index));
|
cast<MDString>(AnnotationTuple->getOperand(Index));
|
||||||
|
|||||||
Reference in New Issue
Block a user