Fix MSVC build failure introduced in r291431

MSVC does not like to reinterpret_cast to a uint64_t. Use a different cast
instead.

llvm-svn: 291435
This commit is contained in:
Pavel Labath 2017-01-09 11:20:35 +00:00
parent c941e7d21b
commit d338381077
1 changed files with 3 additions and 4 deletions

View File

@ -917,12 +917,11 @@ bool RuntimeDyldELF::resolveAArch64ShortBranch(
return false;
const auto &SymInfo = Loc->second;
Address = reinterpret_cast<uint64_t>(
Sections[SymInfo.getSectionID()].getLoadAddressWithOffset(
Address =
uint64_t(Sections[SymInfo.getSectionID()].getLoadAddressWithOffset(
SymInfo.getOffset()));
} else {
Address =
reinterpret_cast<uint64_t>(Sections[Value.SectionID].getLoadAddress());
Address = uint64_t(Sections[Value.SectionID].getLoadAddress());
}
uint64_t Offset = RelI->getOffset();
uint64_t SourceAddress = Sections[SectionID].getLoadAddressWithOffset(Offset);