llvm.org GIT mirror llvm / bb7ad61
Fix the MSVC build following r212382 Looks like the casts are needed there after all. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212399 91177308-0d34-0410-b5e6-96231b3b80d8 Alp Toker 5 years ago
1 changed file(s) with 4 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
4141 inline std::pair
4242 getElfArchType(StringRef Object) {
4343 if (Object.size() < ELF::EI_NIDENT)
44 return std::make_pair(ELF::ELFCLASSNONE, ELF::ELFDATANONE);
45 return std::make_pair(Object[ELF::EI_CLASS], Object[ELF::EI_DATA]);
44 return std::make_pair((uint8_t)ELF::ELFCLASSNONE,
45 (uint8_t)ELF::ELFDATANONE);
46 return std::make_pair((uint8_t)Object[ELF::EI_CLASS],
47 (uint8_t)Object[ELF::EI_DATA]);
4648 }
4749
4850 template