[all-commits] [llvm/llvm-project] f7f5aa: [Clang][AMDGPU] Use size_t to compare with npos (#...
Jinsong Ji via All-commits
all-commits at lists.llvm.org
Tue Mar 25 11:34:34 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f7f5aa217a81f2ec036fee765124bd2057531d86
https://github.com/llvm/llvm-project/commit/f7f5aa217a81f2ec036fee765124bd2057531d86
Author: Jinsong Ji <jinsong.ji at intel.com>
Date: 2025-03-25 (Tue, 25 Mar 2025)
Changed paths:
M clang/tools/amdgpu-arch/AMDGPUArchByHIP.cpp
Log Message:
-----------
[Clang][AMDGPU] Use size_t to compare with npos (#132868)
Fix error
llvm\clang\tools\amdgpu-arch\AMDGPUArchByHIP.cpp(102,29): error: result
of comparison of constant 18446744073709551615 with expression of type
'unsigned int' is always false
[-Werror,-Wtautological-constant-out-of-range-compare]
102 | StringRef VerStr = (Pos == StringRef::npos) ? S : S.substr(Pos +
1);
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list