mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-25 09:05:10 +00:00
Adapt llvmorg-17-init-4072-gcc929590ad30: PrecompiledPreamble::Build
This commit is contained in:
parent
8bc3959537
commit
ba38e13b93
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user