diff --git a/llvm/include/llvm/Object/ELF.h b/llvm/include/llvm/Object/ELF.h index 9c5146f014958..2ae2e9fbdf354 100644 --- a/llvm/include/llvm/Object/ELF.h +++ b/llvm/include/llvm/Object/ELF.h @@ -1236,7 +1236,7 @@ Expected ELFFile::getSectionName(const Elf_Shdr &Section, /// This function returns the hash value for a symbol in the .dynsym section /// Name of the API remains consistent as specified in the libelf /// REF : http://www.sco.com/developers/gabi/latest/ch5.dynamic.html#hash -inline unsigned hashSysV(StringRef SymbolName) { +inline uint32_t hashSysV(StringRef SymbolName) { uint32_t H = 0; for (uint8_t C : SymbolName) { H = (H << 4) + C;