summaryrefslogtreecommitdiffstats
path: root/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2012-02-07 19:36:38 +0000
committerDavid Blaikie <dblaikie@gmail.com>2012-02-07 19:36:38 +0000
commit09d20eefaa5d0dcdd17db45e4065a23396dcb574 (patch)
tree7fc313fd1e380d2ef7f870b36667e341ea156fb1 /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
parent0210e976805795df6cbc59024f622c8e42622e55 (diff)
downloadbcm5719-llvm-09d20eefaa5d0dcdd17db45e4065a23396dcb574.tar.gz
bcm5719-llvm-09d20eefaa5d0dcdd17db45e4065a23396dcb574.zip
Make use of const-correct ParseCommandLineOptions
llvm-svn: 150000
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
-rw-r--r--clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp b/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
index c965692cac6..0841b2cef81 100644
--- a/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
+++ b/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
@@ -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.
OpenPOWER on IntegriCloud