Compare commits

..

2 Commits

Author SHA1 Message Date
rherilier
ce6fab9d46
Merge 5d401fc95d into aca8280288 2025-11-17 11:01:48 +02:00
Fangrui Song
aca8280288 Adapt llvm 22 changes
Type::Elaborated is removed by llvmorg-22-init-3166-g91cdd35008e9

llvm::sys::fs and clang functions are changed due to
https://discourse.llvm.org/t/rfc-file-system-sandboxing-in-clang-llvm/88791
2025-11-15 14:27:19 -08:00
2 changed files with 0 additions and 2 deletions

View File

@ -1282,7 +1282,6 @@ IndexResult index(WorkingFiles *wfiles, VFS *vfs, const std::string &opt_wdir, c
return {};
clang->getPreprocessorOpts().RetainRemappedFileBuffers = true;
#if LLVM_VERSION_MAJOR >= 22
clang->setVirtualFileSystem(fs);
clang->createFileManager();
#else
clang->createFileManager(fs);

View File

@ -284,7 +284,6 @@ std::unique_ptr<CompilerInstance> buildCompilerInstance(Session &session, std::u
// RequiresNullTerminator: true may cause out-of-bounds read when a file is
// mmap'ed but is saved concurrently.
#if LLVM_VERSION_MAJOR >= 22
clang->setVirtualFileSystem(fs);
clang->createFileManager();
#else
clang->createFileManager(fs);