[llvm] r291435 - Fix MSVC build failure introduced in r291431
Pavel Labath via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 9 03:20:36 PST 2017
Author: labath
Date: Mon Jan 9 05:20:35 2017
New Revision: 291435
URL: http://llvm.org/viewvc/llvm-project?rev=291435&view=rev
Log:
Fix MSVC build failure introduced in r291431
MSVC does not like to reinterpret_cast to a uint64_t. Use a different cast
instead.
Modified:
llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
Modified: llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp?rev=291435&r1=291434&r2=291435&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp Mon Jan 9 05:20:35 2017
@@ -917,12 +917,11 @@ bool RuntimeDyldELF::resolveAArch64Short
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);
More information about the llvm-commits
mailing list