]> granicus.if.org Git - clang/commitdiff
Unbreak the clang-fuzzer build after r291184.
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 11 Jan 2017 16:42:26 +0000 (16:42 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 11 Jan 2017 16:42:26 +0000 (16:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@291681 91177308-0d34-0410-b5e6-96231b3b80d8

tools/clang-fuzzer/ClangFuzzer.cpp

index afe57d4a666cfdf717a00802536bc98ba234358a..1692882c0b5f17fe5ce07499847727e9659c3cdf 100644 (file)
@@ -42,7 +42,7 @@ extern "C" int LLVMFuzzerTestOneInput(uint8_t *data, size_t size) {
       tooling::newFrontendActionFactory<clang::SyntaxOnlyAction>());
   std::shared_ptr<PCHContainerOperations> PCHContainerOps =
       std::make_shared<PCHContainerOperations>();
-  action->runInvocation(Invocation.release(), Files.get(), PCHContainerOps,
+  action->runInvocation(std::move(Invocation), Files.get(), PCHContainerOps,
                         &Diags);
   return 0;
 }