Fix a -pedantic warning

llvm-svn: 28670
This commit is contained in:
Chris Lattner 2006-06-02 22:11:06 +00:00
parent dfa9b5aa68
commit e2e2492d8a
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ void Optimize(Module* M) {
sys::DynamicLibrary dll(I->c_str());
typedef void (*OptimizeFunc)(PassManager&,int);
OptimizeFunc OF = OptimizeFunc(
dll.GetAddressOfSymbol("RunOptimizations"));
(intptr_t)dll.GetAddressOfSymbol("RunOptimizations"));
if (OF == 0) {
throw std::string("Optimization Module '") + *I +
"' is missing the RunOptimizations symbol";