[clang] fcaa8c6 - Fix MSVC "signed/unsigned mismatch" warning. NFC.
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 31 04:50:36 PDT 2024
Author: Simon Pilgrim
Date: 2024-10-31T11:50:19Z
New Revision: fcaa8c6e2240a950d3d86fb723d9b0a363b7346a
URL: https://github.com/llvm/llvm-project/commit/fcaa8c6e2240a950d3d86fb723d9b0a363b7346a
DIFF: https://github.com/llvm/llvm-project/commit/fcaa8c6e2240a950d3d86fb723d9b0a363b7346a.diff
LOG: Fix MSVC "signed/unsigned mismatch" warning. NFC.
Added:
Modified:
clang/lib/CodeGen/CGBuiltin.cpp
Removed:
################################################################################
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp
index 1e893b061f7171..fb721fd2be9b8e 100644
--- a/clang/lib/CodeGen/CGBuiltin.cpp
+++ b/clang/lib/CodeGen/CGBuiltin.cpp
@@ -19140,7 +19140,7 @@ Value *CodeGenFunction::EmitAMDGPUBuiltinExpr(unsigned BuiltinID,
Args.push_back(llvm::PoisonValue::get(IntTy));
for (unsigned I = 0; I != E->getNumArgs(); ++I) {
llvm::Value *V = EmitScalarOrConstFoldImmArg(ICEArguments, I, E);
- if (I < (BuiltinID == AMDGPU::BI__builtin_amdgcn_update_dpp ? 2 : 1) &&
+ if (I < (BuiltinID == AMDGPU::BI__builtin_amdgcn_update_dpp ? 2u : 1u) &&
Size < 32) {
if (!DataTy->isIntegerTy())
V = Builder.CreateBitCast(
More information about the cfe-commits
mailing list