1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Fix the MSVC build following r212382

Looks like the casts are needed there after all.

llvm-svn: 212399
This commit is contained in:
Alp Toker 2014-07-06 10:54:41 +00:00
parent 0ca11b2493
commit 223ff032c6

View File

@ -42,8 +42,10 @@ StringRef getELFRelocationTypeName(uint32_t Machine, uint32_t Type);
inline std::pair<unsigned char, unsigned char>
getElfArchType(StringRef Object) {
if (Object.size() < ELF::EI_NIDENT)
return std::make_pair(ELF::ELFCLASSNONE, ELF::ELFDATANONE);
return std::make_pair(Object[ELF::EI_CLASS], Object[ELF::EI_DATA]);
return std::make_pair((uint8_t)ELF::ELFCLASSNONE,
(uint8_t)ELF::ELFDATANONE);
return std::make_pair((uint8_t)Object[ELF::EI_CLASS],
(uint8_t)Object[ELF::EI_DATA]);
}
template <class ELFT>