[LibTooling] Fix build breakage from commit 7b7ce6683ee.

On configurations with -Werror,-Wmissing-field-initializers, the commit does not compile. This commit fixes the offending line.

Original Differential Revision: https://reviews.llvm.org/D60408

llvm-svn: 358705
This commit is contained in:
Yitzhak Mandelbaum 2019-04-18 19:19:01 +00:00
parent 137995d8da
commit f1f0b5f791
1 changed files with 2 additions and 1 deletions

View File

@ -172,7 +172,8 @@ RewriteRule tooling::makeRule(ast_matchers::internal::DynTypedMatcher M,
SmallVector<ASTEdit, 1> Edits) {
M.setAllowBind(true);
// `tryBind` is guaranteed to succeed, because `AllowBind` was set to true.
return RewriteRule{*M.tryBind(RewriteRule::RootId), std::move(Edits)};
return RewriteRule{*M.tryBind(RewriteRule::RootId), std::move(Edits),
nullptr};
}
constexpr llvm::StringLiteral RewriteRule::RootId;