From 26e6e109d559fb644b59231c14346997290dc9d6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 1 Jun 2006 17:27:11 +0000 Subject: [PATCH] Fix -pedantic warnings git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28635 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp index fc58115bded..77b7b266674 100644 --- a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp +++ b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp @@ -71,11 +71,12 @@ static ExFunc lookupFunction(const Function *F) { ExFunc FnPtr = FuncNames[ExtName]; if (FnPtr == 0) - FnPtr = (ExFunc)sys::DynamicLibrary::SearchForAddressOfSymbol(ExtName); + FnPtr = + (ExFunc)(intptr_t)sys::DynamicLibrary::SearchForAddressOfSymbol(ExtName); if (FnPtr == 0) FnPtr = FuncNames["lle_X_"+F->getName()]; if (FnPtr == 0) // Try calling a generic function... if it exists... - FnPtr = (ExFunc)sys::DynamicLibrary::SearchForAddressOfSymbol( + FnPtr = (ExFunc)(intptr_t)sys::DynamicLibrary::SearchForAddressOfSymbol( ("lle_X_"+F->getName()).c_str()); if (FnPtr != 0) Functions.insert(std::make_pair(F, FnPtr)); // Cache for later -- 2.34.1