mirror of
https://github.com/intel/llvm.git
synced 2026-01-31 16:29:50 +08:00
[clang-fuzzer] Update clang-fuzzer to API change in r240225.
llvm-svn: 240685
This commit is contained in:
@@ -39,5 +39,8 @@ extern "C" void LLVMFuzzerTestOneInput(uint8_t *data, size_t size) {
|
||||
Invocation->getPreprocessorOpts().addRemappedFile("./test.cc", Input.release());
|
||||
std::unique_ptr<tooling::ToolAction> action(
|
||||
tooling::newFrontendActionFactory<clang::SyntaxOnlyAction>());
|
||||
action->runInvocation(Invocation.release(), Files.get(), &Diags);
|
||||
std::shared_ptr<PCHContainerOperations> PCHContainerOps =
|
||||
std::make_shared<RawPCHContainerOperations>();
|
||||
action->runInvocation(Invocation.release(), Files.get(), PCHContainerOps,
|
||||
&Diags);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user