Unverified Commit 15c1c854 authored by Andrei Golubev's avatar Andrei Golubev Committed by GitHub
Browse files

[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: default avatarOrest Chura <orest.chura@intel.com>
parent b08aca7a
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment