Make use of const-correct ParseCommandLineOptions

llvm-svn: 150000
This commit is contained in:
David Blaikie
2012-02-07 19:36:38 +00:00
parent 0210e97680
commit 09d20eefaa
4 changed files with 5 additions and 6 deletions

View File

@@ -157,7 +157,7 @@ bool clang::ExecuteCompilerInvocation(CompilerInstance *Clang) {
for (unsigned i = 0; i != NumArgs; ++i)
Args[i + 1] = Clang->getFrontendOpts().LLVMArgs[i].c_str();
Args[NumArgs + 1] = 0;
llvm::cl::ParseCommandLineOptions(NumArgs + 1, const_cast<char **>(Args));
llvm::cl::ParseCommandLineOptions(NumArgs + 1, Args);
}
// Honor -analyzer-checker-help.