summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Support/Registry.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/Registry.h b/llvm/include/llvm/Support/Registry.h
index 45ba77000d8..27f025fcd08 100644
--- a/llvm/include/llvm/Support/Registry.h
+++ b/llvm/include/llvm/Support/Registry.h
@@ -128,7 +128,7 @@ namespace llvm {
std::string Name("LLVMGetRegistry_");
Name.append(RegistryName);
GetRegistry Getter =
- reinterpret_cast<GetRegistry>(DL.getAddressOfSymbol(Name.c_str()));
+ (GetRegistry)(intptr_t)DL.getAddressOfSymbol(Name.c_str());
if (Getter) {
// Call the getter function in order to get the full copy of the
// registry defined in the plugin DLL, and copy them over to the
OpenPOWER on IntegriCloud