Merge pull request #5804 from sunshineinabox/PR_thunkgen

thunkgen: satisfy the clang 22 ComplierInstance VFS invariant.
This commit is contained in:
Ryan Houdek authored and GitHub committed 2026-08-04 23:51:02 -07:00
commit 9686454161
1 file changed
+3
+3
View File
@@ -812,6 +812,9 @@ bool GenerateThunkLibsActionFactory::runInvocation(std::shared_ptr<clang::Compil
#else
clang::CompilerInstance Compiler(std::move(PCHContainerOps));
Compiler.setInvocation(std::move(Invocation));
#endif
#if LLVM_VERSION_MAJOR >= 22
Compiler.setVirtualFileSystem(Files->getVirtualFileSystemPtr());
#endif
Compiler.setFileManager(Files);