[llvm] r285592 - [lli] Don't strip away const qualifier. Unbreak the gcc6 build.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 31 09:21:49 PDT 2016
Author: davide
Date: Mon Oct 31 11:21:48 2016
New Revision: 285592
URL: http://llvm.org/viewvc/llvm-project?rev=285592&view=rev
Log:
[lli] Don't strip away const qualifier. Unbreak the gcc6 build.
Modified:
llvm/trunk/tools/lli/OrcLazyJIT.cpp
Modified: llvm/trunk/tools/lli/OrcLazyJIT.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lli/OrcLazyJIT.cpp?rev=285592&r1=285591&r2=285592&view=diff
==============================================================================
--- llvm/trunk/tools/lli/OrcLazyJIT.cpp (original)
+++ llvm/trunk/tools/lli/OrcLazyJIT.cpp Mon Oct 31 11:21:48 2016
@@ -151,11 +151,11 @@ int llvm::runOrcLazyJIT(std::vector<std:
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());
}
More information about the llvm-commits
mailing list