From ba38e13b93de1e8787b7e8a22b9a00d35b2b40f2 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Tue, 11 Apr 2023 11:03:41 -0700 Subject: [PATCH] Adapt llvmorg-17-init-4072-gcc929590ad30: PrecompiledPreamble::Build --- src/sema_manager.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sema_manager.cc b/src/sema_manager.cc index 14f303b5f..c6f803c33 100644 --- a/src/sema_manager.cc +++ b/src/sema_manager.cc @@ -404,7 +404,11 @@ void buildPreamble(Session &session, CompilerInvocation &ci, CclsPreambleCallbacks pc; if (auto newPreamble = PrecompiledPreamble::Build( - ci, buf.get(), bounds, *de, fs, session.pch, true, pc)) { + ci, buf.get(), bounds, *de, fs, session.pch, true, +#if LLVM_VERSION_MAJOR >= 17 // llvmorg-17-init-4072-gcc929590ad30 + "", +#endif + pc)) { assert(!ci.getPreprocessorOpts().RetainRemappedFileBuffers); if (oldP) { auto &old_includes = oldP->includes;