[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:
Davide Italiano 2016-10-31 16:21:48 +00:00
parent bff25831e0
commit d3f04d3314

View File

@ -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());
}