aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorAndrei Golubev <andrey.golubev@intel.com>2024-01-18 19:16:48 +0200
committerGitHub <noreply@github.com>2024-01-19 04:16:48 +1100
commit15c1c85470a17283bd86fe68a702c74599bdcb5c (patch)
tree3cffb6654f1f58d22be9e61fd79a6c8d20dbb689 /clang/lib/Frontend/CompilerInvocation.cpp
parentb08aca7a4fb9520db116e1cc9620f9eb7ce57764 (diff)
downloadllvm-15c1c85470a17283bd86fe68a702c74599bdcb5c.zip
llvm-15c1c85470a17283bd86fe68a702c74599bdcb5c.tar.gz
llvm-15c1c85470a17283bd86fe68a702c74599bdcb5c.tar.bz2
[LLVM][ADT] Convert llvm::hash_code to unsigned explicitly in DenseMapInfo (#77743)
The getHashValue() signature returns a value of type 'unsigned' while the hash_code could only be implicitly converted to 'size_t'. Depending on the C++ implementation, this may or may not be a narrowing conversion. On some platform/compiler combination, this becomes a warning. To avoid the warning (and better highlight the narrowing), do an explicit conversion instead. Co-authored-by: Orest Chura <orest.chura@intel.com>
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions