diff options
author | Jinsong Ji <jinsong.ji@intel.com> | 2025-03-25 14:34:12 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-25 14:34:12 -0400 |
commit | f7f5aa217a81f2ec036fee765124bd2057531d86 (patch) | |
tree | d6dfe76e795224b6cb73712bd78c8a20be9c2459 /clang/unittests/Basic/SourceManagerTest.cpp | |
parent | 3bcbb472586fddf66c58011e57e08550d59ea8e5 (diff) | |
download | llvm-f7f5aa217a81f2ec036fee765124bd2057531d86.zip llvm-f7f5aa217a81f2ec036fee765124bd2057531d86.tar.gz llvm-f7f5aa217a81f2ec036fee765124bd2057531d86.tar.bz2 |
[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);
Diffstat (limited to 'clang/unittests/Basic/SourceManagerTest.cpp')
0 files changed, 0 insertions, 0 deletions