[llvm] 88a1855 - Fix MSVC signed/unsigned mismatch warning
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 21 05:55:48 PST 2024
Author: Simon Pilgrim
Date: 2024-02-21T13:53:48Z
New Revision: 88a18556aeeaf70315990ed9fb23c28834edf454
URL: https://github.com/llvm/llvm-project/commit/88a18556aeeaf70315990ed9fb23c28834edf454
DIFF: https://github.com/llvm/llvm-project/commit/88a18556aeeaf70315990ed9fb23c28834edf454.diff
LOG: Fix MSVC signed/unsigned mismatch warning
Added:
Modified:
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
index 812bb26f201a00..7d6448dc35f9a9 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -13451,7 +13451,7 @@ struct NodeExtensionHelper {
? MVT::getFloatingPointVT(NarrowSize)
: MVT::getIntegerVT(NarrowSize);
- assert(NarrowSize >= (SupportsExt == ExtKind::FPExt ? 16 : 8) &&
+ assert((int)NarrowSize >= (SupportsExt == ExtKind::FPExt ? 16 : 8) &&
"Trying to extend something we can't represent");
MVT NarrowVT = MVT::getVectorVT(EltVT, VT.getVectorElementCount());
return NarrowVT;
More information about the llvm-commits
mailing list