From 61ef28650626dd4f651a250005c77255d8086f69 Mon Sep 17 00:00:00 2001 From: gbMattN Date: Thu, 3 Apr 2025 15:56:33 +0100 Subject: [PATCH] Fix signed/unsigned mismatch warning (#134255) --- llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp index fcac686b4cd1..a4c6c61e5799 100644 --- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp @@ -3447,7 +3447,8 @@ static StringRef getAllocaName(AllocaInst *AI) { if (!isa(Annotation)) continue; auto AnnotationTuple = cast(Annotation); - for (int Index = 0; Index < AnnotationTuple->getNumOperands(); Index++) { + for (unsigned Index = 0; Index < AnnotationTuple->getNumOperands(); + Index++) { // All annotations are strings auto MetadataString = cast(AnnotationTuple->getOperand(Index));