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 | 6889e9024e91fa7cb8fef430f2902b6eba901c20 (patch) | |
tree | 07e06ad0f29ac1bfaf2a11671bf2049320a90d0d /examples | |
parent | 0b99d2406429b9d2438e7b1a016deaa6c6d01dc3 (diff) | |
download | clang-6889e9024e91fa7cb8fef430f2902b6eba901c20.tar.gz |
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
Diffstat (limited to 'examples')
-rw-r--r-- | examples/clang-interpreter/main.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/clang-interpreter/main.cpp b/examples/clang-interpreter/main.cpp index 134d70774f..6ac142bffd 100644 --- a/examples/clang-interpreter/main.cpp +++ b/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) { |