diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-02-07 19:36:38 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-02-07 19:36:38 +0000 |
commit | 6bd17d2f2e6e498b0ff01e2e755f044de046d138 (patch) | |
tree | 70580021eb783d97056803d93eb2becffca73478 /tools/driver | |
parent | 52aabafeee9e8634eceb46b1a3fdbd3cd22b1cf7 (diff) |
Make use of const-correct ParseCommandLineOptions
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150000 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/driver')
-rw-r--r-- | tools/driver/cc1as_main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/driver/cc1as_main.cpp b/tools/driver/cc1as_main.cpp index 14ff1e03ac..84aeced411 100644 --- a/tools/driver/cc1as_main.cpp +++ b/tools/driver/cc1as_main.cpp @@ -413,7 +413,7 @@ int cc1as_main(const char **ArgBegin, const char **ArgEnd, for (unsigned i = 0; i != NumArgs; ++i) Args[i + 1] = Asm.LLVMArgs[i].c_str(); Args[NumArgs + 1] = 0; - llvm::cl::ParseCommandLineOptions(NumArgs + 1, const_cast<char **>(Args)); + llvm::cl::ParseCommandLineOptions(NumArgs + 1, Args); } // Execute the invocation, unless there were parsing errors. |