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:
parent
a8bbcbd006
commit
e816421087
1 changed files with 1 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue