aboutsummaryrefslogtreecommitdiff
path: root/tools/driver/cc1_main.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-19 16:39:44 +0000
committerDan Gohman <gohman@apple.com>2010-04-19 16:39:44 +0000
commitcb421fa690da545b58a720abe5f1c49b166dbde7 (patch)
tree83aec2feca44552c955bfcd70aabb3cfc36d9563 /tools/driver/cc1_main.cpp
parentcb7464ab402d057849dda9749d62a62d86c35ab8 (diff)
Fix -Wcast-qual warnings.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101786 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/driver/cc1_main.cpp')
-rw-r--r--tools/driver/cc1_main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/driver/cc1_main.cpp b/tools/driver/cc1_main.cpp
index 41f2997e20..144a734b15 100644
--- a/tools/driver/cc1_main.cpp
+++ b/tools/driver/cc1_main.cpp
@@ -251,7 +251,7 @@ int cc1_main(const char **ArgBegin, const char **ArgEnd,
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, (char**) Args);
+ llvm::cl::ParseCommandLineOptions(NumArgs + 1, const_cast<char **>(Args));
}
// Create the actual diagnostics engine.