r240685 - [clang-fuzzer] Update clang-fuzzer to API change in r240225.

Alexey Samsonov vonosmas at gmail.com
Thu Jun 25 13:21:59 PDT 2015


Author: samsonov
Date: Thu Jun 25 15:21:59 2015
New Revision: 240685

URL: http://llvm.org/viewvc/llvm-project?rev=240685&view=rev
Log:
[clang-fuzzer] Update clang-fuzzer to API change in r240225.

Modified:
    cfe/trunk/tools/clang-fuzzer/ClangFuzzer.cpp

Modified: cfe/trunk/tools/clang-fuzzer/ClangFuzzer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-fuzzer/ClangFuzzer.cpp?rev=240685&r1=240684&r2=240685&view=diff
==============================================================================
--- cfe/trunk/tools/clang-fuzzer/ClangFuzzer.cpp (original)
+++ cfe/trunk/tools/clang-fuzzer/ClangFuzzer.cpp Thu Jun 25 15:21:59 2015
@@ -39,5 +39,8 @@ extern "C" void LLVMFuzzerTestOneInput(u
   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);
 }





More information about the cfe-commits mailing list