From 55b92dcb35a0758bea294ab6e42f9954ac06cac3 Mon Sep 17 00:00:00 2001 From: Adam Czachorowski Date: Thu, 19 Mar 2020 15:09:28 +0100 Subject: [PATCH] [clangd] Fix elog message when preamble build fails. Reviewers: sammccall Reviewed By: sammccall Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D76429 --- clang-tools-extra/clangd/Preamble.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang-tools-extra/clangd/Preamble.cpp b/clang-tools-extra/clangd/Preamble.cpp index bd92b8c1bdb43..fdee71fd22449 100644 --- a/clang-tools-extra/clangd/Preamble.cpp +++ b/clang-tools-extra/clangd/Preamble.cpp @@ -162,7 +162,7 @@ buildPreamble(PathRef FileName, CompilerInvocation &CI, SerializedDeclsCollector.takeMacros(), std::move(StatCache), SerializedDeclsCollector.takeCanonicalIncludes()); } else { - elog("Could not build a preamble for file {0} version {2}", FileName, + elog("Could not build a preamble for file {0} version {1}", FileName, Inputs.Version); return nullptr; }