Skip to content
Snippets Groups Projects
Commit 9e8635a8 authored by Benjamin Kramer's avatar Benjamin Kramer
Browse files

Fix -Wcast-qual warnings.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101895 91177308-0d34-0410-b5e6-96231b3b80d8
parent 575cf379
No related branches found
No related tags found
No related merge requests found
...@@ -107,9 +107,11 @@ int main(int argc, const char **argv, char * const *envp) { ...@@ -107,9 +107,11 @@ int main(int argc, const char **argv, char * const *envp) {
// Initialize a compiler invocation object from the clang (-cc1) arguments. // Initialize a compiler invocation object from the clang (-cc1) arguments.
const driver::ArgStringList &CCArgs = Cmd->getArguments(); const driver::ArgStringList &CCArgs = Cmd->getArguments();
llvm::OwningPtr<CompilerInvocation> CI(new CompilerInvocation); llvm::OwningPtr<CompilerInvocation> CI(new CompilerInvocation);
CompilerInvocation::CreateFromArgs(*CI, (const char**) CCArgs.data(), CompilerInvocation::CreateFromArgs(*CI,
(const char**) CCArgs.data()+CCArgs.size(), const_cast<const char **>(CCArgs.data()),
Diags); const_cast<const char **>(CCArgs.data()) +
CCArgs.size(),
*Diags);
// Show the invocation, with -v. // Show the invocation, with -v.
if (CI->getHeaderSearchOpts().Verbose) { if (CI->getHeaderSearchOpts().Verbose) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment