From ec7a670d848cc632b7b39c6efdf8e8d56b24913c Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Tue, 2 Nov 2021 18:14:58 -0700 Subject: [PATCH] Update the LLVM submodule. (#935) Among other things, this brings compatibility fixes with upstream GoogleTest and Windows Bazel build support fixes. --- .gitmodules | 1 + migrate_cpp/cpp_refactoring/main.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitmodules b/.gitmodules index f1f66d2b5ed5..41295b20751f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -5,6 +5,7 @@ [submodule "third_party/llvm-project"] path = third_party/llvm-project url = https://github.com/llvm/llvm-project.git + branch = main [submodule "third_party/examples/brotli/original"] path = third_party/examples/brotli/original url = https://github.com/google/brotli diff --git a/migrate_cpp/cpp_refactoring/main.cpp b/migrate_cpp/cpp_refactoring/main.cpp index e22262cc088a..175950b707ce 100644 --- a/migrate_cpp/cpp_refactoring/main.cpp +++ b/migrate_cpp/cpp_refactoring/main.cpp @@ -19,7 +19,7 @@ static void InitReplacements(RefactoringTool* tool) { for (const std::string& path : tool->getSourcePaths()) { llvm::ErrorOr file = files.getFile(path); if (file.getError()) { - llvm::report_fatal_error("Error accessing `" + path + + llvm::report_fatal_error(llvm::Twine("Error accessing `") + path + "`: " + file.getError().message() + "\n"); } repl.insert({files.getCanonicalName(*file).str(), {}});