Adapt llvmorg-17-init-4072-gcc929590ad30: PrecompiledPreamble::Build

This commit is contained in:
Fangrui Song 2023-04-11 11:03:41 -07:00
parent 8bc3959537
commit ba38e13b93

View File

@ -404,7 +404,11 @@ void buildPreamble(Session &session, CompilerInvocation &ci,
CclsPreambleCallbacks pc; CclsPreambleCallbacks pc;
if (auto newPreamble = PrecompiledPreamble::Build( 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); assert(!ci.getPreprocessorOpts().RetainRemappedFileBuffers);
if (oldP) { if (oldP) {
auto &old_includes = oldP->includes; auto &old_includes = oldP->includes;