Skip to content

Commit 61ef286

Browse files
authored
Fix signed/unsigned mismatch warning (#134255)
1 parent c14b6e9 commit 61ef286

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3447,7 +3447,8 @@ static StringRef getAllocaName(AllocaInst *AI) {
34473447
if (!isa<MDTuple>(Annotation))
34483448
continue;
34493449
auto AnnotationTuple = cast<MDTuple>(Annotation);
3450-
for (int Index = 0; Index < AnnotationTuple->getNumOperands(); Index++) {
3450+
for (unsigned Index = 0; Index < AnnotationTuple->getNumOperands();
3451+
Index++) {
34513452
// All annotations are strings
34523453
auto MetadataString =
34533454
cast<MDString>(AnnotationTuple->getOperand(Index));

0 commit comments

Comments
 (0)