[cfe-commits] r101896 - /cfe/trunk/examples/clang-interpreter/main.cpp
Benjamin Kramer
benny.kra at googlemail.com
Tue Apr 20 04:55:38 PDT 2010
Author: d0k
Date: Tue Apr 20 06:55:38 2010
New Revision: 101896
URL: http://llvm.org/viewvc/llvm-project?rev=101896&view=rev
Log:
Tip of the day: save before commit.
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=101896&r1=101895&r2=101896&view=diff
==============================================================================
--- cfe/trunk/examples/clang-interpreter/main.cpp (original)
+++ cfe/trunk/examples/clang-interpreter/main.cpp Tue Apr 20 06:55:38 2010
@@ -111,7 +111,7 @@
const_cast<const char **>(CCArgs.data()),
const_cast<const char **>(CCArgs.data()) +
CCArgs.size(),
- *Diags);
+ Diags);
// Show the invocation, with -v.
if (CI->getHeaderSearchOpts().Verbose) {
@@ -128,7 +128,7 @@
Clang.setInvocation(CI.take());
// Create the compilers actual diagnostics engine.
- Clang.createDiagnostics(int(CCArgs.size()), (char**) CCArgs.data());
+ Clang.createDiagnostics(int(CCArgs.size()),const_cast<char**>(CCArgs.data()));
if (!Clang.hasDiagnostics())
return 1;
More information about the cfe-commits
mailing list