From f1f0b5f791d3bc0b8a07ac3534249522c2cf4967 Mon Sep 17 00:00:00 2001 From: Yitzhak Mandelbaum Date: Thu, 18 Apr 2019 19:19:01 +0000 Subject: [PATCH] [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 --- clang/lib/Tooling/Refactoring/Transformer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clang/lib/Tooling/Refactoring/Transformer.cpp b/clang/lib/Tooling/Refactoring/Transformer.cpp index 3a7a3ff..57f6659 100644 --- a/clang/lib/Tooling/Refactoring/Transformer.cpp +++ b/clang/lib/Tooling/Refactoring/Transformer.cpp @@ -172,7 +172,8 @@ RewriteRule tooling::makeRule(ast_matchers::internal::DynTypedMatcher M, SmallVector 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; -- 2.7.4