diff options
author | Douglas Yung <douglas.yung@sony.com> | 2019-08-28 02:13:24 +0000 |
---|---|---|
committer | Douglas Yung <douglas.yung@sony.com> | 2019-08-28 02:13:24 +0000 |
commit | e816421087b40e79ef0312f49434a75a97ac69e8 (patch) | |
tree | 8cbb521cd79aa1eec51faf72ebbf2e5913d39b79 /clang/examples/clang-interpreter | |
parent | a8bbcbd0064917bdaa4eb50ba2c1d8c3e23ed23d (diff) | |
download | bcm5719-llvm-e816421087b40e79ef0312f49434a75a97ac69e8.tar.gz bcm5719-llvm-e816421087b40e79ef0312f49434a75a97ac69e8.zip |
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.
llvm-svn: 370151
Diffstat (limited to 'clang/examples/clang-interpreter')
-rw-r--r-- | clang/examples/clang-interpreter/main.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/clang/examples/clang-interpreter/main.cpp b/clang/examples/clang-interpreter/main.cpp index 134d70774f8..6ac142bffdf 100644 --- a/clang/examples/clang-interpreter/main.cpp +++ b/clang/examples/clang-interpreter/main.cpp @@ -173,11 +173,7 @@ int main(int argc, const char **argv) { // Initialize a compiler invocation object from the clang (-cc1) arguments. const llvm::opt::ArgStringList &CCArgs = Cmd.getArguments(); std::unique_ptr<CompilerInvocation> CI(new CompilerInvocation); - CompilerInvocation::CreateFromArgs(*CI, - const_cast<const char **>(CCArgs.data()), - const_cast<const char **>(CCArgs.data()) + - CCArgs.size(), - Diags); + CompilerInvocation::CreateFromArgs(*CI, CCArgs, Diags); // Show the invocation, with -v. if (CI->getHeaderSearchOpts().Verbose) { |