[clang] [llvm] [clang][ScanDeps] Allow PCHs to have different VFS overlays (PR #82294)

Jan Svoboda via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 20 08:51:19 PST 2024


================
@@ -67,7 +68,7 @@ static bool checkHeaderSearchPaths(const HeaderSearchOptions &HSOpts,
   if (LangOpts.Modules) {
     if (HSOpts.VFSOverlayFiles != ExistingHSOpts.VFSOverlayFiles) {
       if (Diags) {
-        Diags->Report(diag::err_pch_vfsoverlay_mismatch);
+        Diags->Report(diag::warn_pch_vfsoverlay_mismatch);
----------------
jansvoboda11 wrote:

Seems like this is applicable outside of the scanner. Should we move this into the generic PCH loading code?

https://github.com/llvm/llvm-project/pull/82294


More information about the llvm-commits mailing list