Merge pull request #4408 from Sonicadvance1/fix_thunks_llvm_20

LibraryForwarding/gen: Fixes compiling with LLVM 20
This commit is contained in:
Tony Wasserka authored and GitHub committed 2025-03-17 14:37:26 +01:00
commit 61acc76be7
1 file changed
+4
+4
View File
@@ -812,7 +812,11 @@ bool GenerateThunkLibsActionFactory::runInvocation(std::shared_ptr<clang::Compil
GenerateThunkLibsAction Action(libname, output_filenames, abi);
#if LLVM_VERSION_MAJOR >= 20
Compiler.createDiagnostics(Compiler.getVirtualFileSystem(), DiagConsumer, false);
#else
Compiler.createDiagnostics(DiagConsumer, false);
#endif
if (!Compiler.hasDiagnostics()) {
return false;
}