[clang] [clang-tools-extra] [clang] Make deprecations of some `FileManager` APIs formal (PR #110014)

Ben Langmuir via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 25 10:11:29 PDT 2024


================
@@ -427,12 +427,8 @@ static void InitializeFileRemapping(DiagnosticsEngine &Diags,
     }
 
     // Create the file entry for the file that we're mapping from.
-    const FileEntry *FromFile =
-        FileMgr.getVirtualFile(RF.first, ToFile->getSize(), 0);
-    if (!FromFile) {
-      Diags.Report(diag::err_fe_remap_missing_from_file) << RF.first;
----------------
benlangmuir wrote:

Nice catch

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


More information about the cfe-commits mailing list