summaryrefslogtreecommitdiffstats
path: root/tools/clang-fuzzer/ClangFuzzer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/clang-fuzzer/ClangFuzzer.cpp')
-rw-r--r--tools/clang-fuzzer/ClangFuzzer.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/clang-fuzzer/ClangFuzzer.cpp b/tools/clang-fuzzer/ClangFuzzer.cpp
index 17ef052..124911c 100644
--- a/tools/clang-fuzzer/ClangFuzzer.cpp
+++ b/tools/clang-fuzzer/ClangFuzzer.cpp
@@ -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);
}
OpenPOWER on IntegriCloud