[cfe-commits] r101895 - /cfe/trunk/examples/clang-interpreter/main.cpp
Benjamin Kramer
benny.kra at googlemail.com
Tue Apr 20 04:50:39 PDT 2010
Author: d0k
Date: Tue Apr 20 06:50:39 2010
New Revision: 101895
URL: http://llvm.org/viewvc/llvm-project?rev=101895&view=rev
Log:
Fix -Wcast-qual warnings.
Modified:
cfe/trunk/examples/clang-interpreter/main.cpp
Modified: cfe/trunk/examples/clang-interpreter/main.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/examples/clang-interpreter/main.cpp?rev=101895&r1=101894&r2=101895&view=diff
==============================================================================
--- cfe/trunk/examples/clang-interpreter/main.cpp (original)
+++ cfe/trunk/examples/clang-interpreter/main.cpp Tue Apr 20 06:50:39 2010
@@ -107,9 +107,11 @@
// Initialize a compiler invocation object from the clang (-cc1) arguments.
const driver::ArgStringList &CCArgs = Cmd->getArguments();
llvm::OwningPtr<CompilerInvocation> CI(new CompilerInvocation);
- CompilerInvocation::CreateFromArgs(*CI, (const char**) CCArgs.data(),
- (const char**) CCArgs.data()+CCArgs.size(),
- Diags);
+ CompilerInvocation::CreateFromArgs(*CI,
+ const_cast<const char **>(CCArgs.data()),
+ const_cast<const char **>(CCArgs.data()) +
+ CCArgs.size(),
+ *Diags);
// Show the invocation, with -v.
if (CI->getHeaderSearchOpts().Verbose) {
More information about the cfe-commits
mailing list