diff options
author | Chris Lattner <sabre@nondot.org> | 2006-06-02 22:11:06 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-06-02 22:11:06 +0000 |
commit | 7c5357f0b92ffb4872152c8385a1a1bbffeefc82 (patch) | |
tree | 073b52bd119a5647b977822e4ff4abea75bbbcda | |
parent | 0cd059eddb0e51494f0f662ea8ebbed97baa14b0 (diff) | |
download | external_llvm-7c5357f0b92ffb4872152c8385a1a1bbffeefc82.zip external_llvm-7c5357f0b92ffb4872152c8385a1a1bbffeefc82.tar.gz external_llvm-7c5357f0b92ffb4872152c8385a1a1bbffeefc82.tar.bz2 |
Fix a -pedantic warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28670 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/llvm-ld/Optimize.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-ld/Optimize.cpp b/tools/llvm-ld/Optimize.cpp index 69ef608..41111f9 100644 --- a/tools/llvm-ld/Optimize.cpp +++ b/tools/llvm-ld/Optimize.cpp @@ -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"; |