diff --git a/clang/include/clang/Tooling/Tooling.h b/clang/include/clang/Tooling/Tooling.h index ced2405f6e83..4fb0c18be95e 100644 --- a/clang/include/clang/Tooling/Tooling.h +++ b/clang/include/clang/Tooling/Tooling.h @@ -505,7 +505,8 @@ void addTargetAndModeForProgramName(std::vector &CommandLine, /// Creates a \c CompilerInvocation. CompilerInvocation *newInvocation(DiagnosticsEngine *Diagnostics, - const llvm::opt::ArgStringList &CC1Args); + const llvm::opt::ArgStringList &CC1Args, + const char *const BinaryName); } // namespace tooling diff --git a/clang/tools/clang-fuzzer/handle-cxx/handle_cxx.cpp b/clang/tools/clang-fuzzer/handle-cxx/handle_cxx.cpp index 32d351f4c3e9..14204021d262 100644 --- a/clang/tools/clang-fuzzer/handle-cxx/handle_cxx.cpp +++ b/clang/tools/clang-fuzzer/handle-cxx/handle_cxx.cpp @@ -37,7 +37,7 @@ void clang_fuzzer::HandleCXX(const std::string &S, IntrusiveRefCntPtr(new DiagnosticIDs()), &*DiagOpts, &Diags, false); std::unique_ptr Invocation( - tooling::newInvocation(&Diagnostics, CC1Args)); + tooling::newInvocation(&Diagnostics, CC1Args, /*BinaryName=*/nullptr)); std::unique_ptr Input = llvm::MemoryBuffer::getMemBuffer(S); Invocation->getPreprocessorOpts().addRemappedFile(FileName,