Skip to content

Commit

Permalink
Fix a -pedantic warning
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28670 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
lattner committed Jun 2, 2006
1 parent 0cd059e commit 7c5357f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/llvm-ld/Optimize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 7c5357f

Please sign in to comment.