Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit 6889e90

Browse files
committed
Fixup build of clang-interpreter example after change in r370122.
This should fix the build failure on llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@370151 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 0b99d24 commit 6889e90

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

examples/clang-interpreter/main.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,7 @@ int main(int argc, const char **argv) {
173173
// Initialize a compiler invocation object from the clang (-cc1) arguments.
174174
const llvm::opt::ArgStringList &CCArgs = Cmd.getArguments();
175175
std::unique_ptr<CompilerInvocation> CI(new CompilerInvocation);
176-
CompilerInvocation::CreateFromArgs(*CI,
177-
const_cast<const char **>(CCArgs.data()),
178-
const_cast<const char **>(CCArgs.data()) +
179-
CCArgs.size(),
180-
Diags);
176+
CompilerInvocation::CreateFromArgs(*CI, CCArgs, Diags);
181177

182178
// Show the invocation, with -v.
183179
if (CI->getHeaderSearchOpts().Verbose) {

0 commit comments

Comments
 (0)