[MCJIT] Replace a C-style cast in RuntimeDyldImpl.h.
authorLang Hames <lhames@gmail.com>
Wed, 27 Aug 2014 17:48:07 +0000 (17:48 +0000)
committerLang Hames <lhames@gmail.com>
Wed, 27 Aug 2014 17:48:07 +0000 (17:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216568 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h

index 95962b8..379cb4a 100644 (file)
@@ -70,7 +70,7 @@ public:
   SectionEntry(StringRef name, uint8_t *address, size_t size,
                uintptr_t objAddress)
       : Name(name), Address(address), Size(size),
-        LoadAddress((uintptr_t)address), StubOffset(size),
+        LoadAddress(reinterpret_cast<uintptr_t>(address)), StubOffset(size),
         ObjAddress(objAddress) {}
 };