mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-03-02 07:16:29 +00:00
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
@ -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…
x
Reference in New Issue
Block a user