[llvm] b49c4af - Fix GCC signed/unsigned comparison warning.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 20 06:17:34 PST 2024
Author: Simon Pilgrim
Date: 2024-11-20T14:17:21Z
New Revision: b49c4af186a6de8f201ed6a4c326ebf822d4fd84
URL: https://github.com/llvm/llvm-project/commit/b49c4af186a6de8f201ed6a4c326ebf822d4fd84
DIFF: https://github.com/llvm/llvm-project/commit/b49c4af186a6de8f201ed6a4c326ebf822d4fd84.diff
LOG: Fix GCC signed/unsigned comparison warning.
Added:
Modified:
llvm/lib/Target/X86/X86ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 3f71ebef0818c9..fea66e9582cfba 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -9937,7 +9937,7 @@ static unsigned getSHUFPDImm(ArrayRef<int> Mask) {
// If the mask only uses one non-undef element, then fully 'splat' it to
// improve later broadcast matching.
int FirstIndex = find_if(Mask, [](int M) { return M >= 0; }) - Mask.begin();
- assert(0 <= FirstIndex && FirstIndex < Mask.size() &&
+ assert(0 <= FirstIndex && FirstIndex < (int)Mask.size() &&
"All undef shuffle mask");
int FirstElt = Mask[FirstIndex];
More information about the llvm-commits
mailing list