mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-25 21:00:00 +00:00
Fix a -pedantic warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28670 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0cd059eddb
commit
7c5357f0b9
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user