Skip to content

Commit ba38e13

Browse files
committed
Adapt llvmorg-17-init-4072-gcc929590ad30: PrecompiledPreamble::Build
1 parent 8bc3959 commit ba38e13

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/sema_manager.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,11 @@ void buildPreamble(Session &session, CompilerInvocation &ci,
404404

405405
CclsPreambleCallbacks pc;
406406
if (auto newPreamble = PrecompiledPreamble::Build(
407-
ci, buf.get(), bounds, *de, fs, session.pch, true, pc)) {
407+
ci, buf.get(), bounds, *de, fs, session.pch, true,
408+
#if LLVM_VERSION_MAJOR >= 17 // llvmorg-17-init-4072-gcc929590ad30
409+
"",
410+
#endif
411+
pc)) {
408412
assert(!ci.getPreprocessorOpts().RetainRemappedFileBuffers);
409413
if (oldP) {
410414
auto &old_includes = oldP->includes;

0 commit comments

Comments
 (0)