mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-14 17:56:39 +00:00
Fix signed/unsigned mismatch warning (#134255)
This commit is contained in:
parent
c14b6e90bd
commit
61ef286506
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user