summaryrefslogtreecommitdiffstats
path: root/tools/clang-fuzzer
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2015-06-25 20:21:59 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2015-06-25 20:21:59 +0000
commite04de3ebe93897838a47c9ace4c5377ab91c47c6 (patch)
tree2a1ffb2418903a660f97e95dac65cb31026deb83 /tools/clang-fuzzer
parentc09d2b48a4290e75d369443195f25649d7b649ab (diff)
[clang-fuzzer] Update clang-fuzzer to API change in r240225.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@240685 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/clang-fuzzer')
-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 17ef0521e3..124911cd4a 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);
}