mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-03 05:41:42 +00:00
[lli] Don't strip away const qualifier. Unbreak the gcc6 build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285592 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bff25831e0
commit
d3f04d3314
@ -151,11 +151,11 @@ int llvm::runOrcLazyJIT(std::vector<std::unique_ptr<Module>> Ms,
|
||||
return 1;
|
||||
}
|
||||
|
||||
typedef int (*MainFnPtr)(int, char*[]);
|
||||
typedef int (*MainFnPtr)(int, const char*[]);
|
||||
std::vector<const char *> ArgV;
|
||||
for (auto &Arg : Args)
|
||||
ArgV.push_back(Arg.c_str());
|
||||
auto Main = fromTargetAddress<MainFnPtr>(MainSym.getAddress());
|
||||
return Main(ArgV.size(), (char**)ArgV.data());
|
||||
return Main(ArgV.size(), (const char**)ArgV.data());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user