Skip to content

Commit

Permalink
[clang] Silence warning when building with MSVC targetting x86
Browse files Browse the repository at this point in the history
This fixes:
```
[3786/6996] Building CXX object tools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\AttrDocTable.cpp.obj
C:\git\llvm-project\clang\lib\AST\AttrDocTable.cpp(24): warning C4018: '<': signed/unsigned mismatch
```
  • Loading branch information
aganea committed Jan 25, 2024
1 parent 6fe21bc commit ee15e2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/AST/AttrDocTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ static const llvm::StringRef AttrDoc[] = {
};

llvm::StringRef clang::Attr::getDocumentation(clang::attr::Kind K) {
if (K < std::size(AttrDoc))
if (K < (int)std::size(AttrDoc))
return AttrDoc[K];
return "";
}

0 comments on commit ee15e2b

Please sign in to comment.