[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


================
@@ -1925,8 +1921,8 @@ ModuleLoadResult CompilerInstance::findOrCompileModuleAndReadAST(
     M = HS.lookupModule(ModuleName, ImportLoc, true, !IsInclusionDirective);
 
     // Check whether M refers to the file in the prebuilt module path.
-    if (M && M->getASTFile())
-      if (auto ModuleFile = FileMgr->getFile(ModuleFilename))
+    if (M && M->getASTFile() && M->getASTFile())
----------------
benlangmuir wrote:

Redundant condition

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


More information about the cfe-commits mailing list