Skip to content

Commit

Permalink
Adapt llvmorg-17-init-4072-gcc929590ad30: PrecompiledPreamble::Build
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Apr 11, 2023
1 parent 8bc3959 commit ba38e13
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/sema_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ba38e13

Please sign in to comment.