forked from OSchip/llvm-project
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:
parent
c941e7d21b
commit
d338381077
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue