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
This commit is contained in:
Douglas Yung 2019-08-28 02:13:24 +00:00
parent a8bbcbd006
commit e816421087

View File

@ -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) {