]> granicus.if.org Git - clang/commitdiff
Remove redundant check.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 27 Jun 2017 00:29:32 +0000 (00:29 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 27 Jun 2017 00:29:32 +0000 (00:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@306350 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Serialization/ASTReader.cpp

index ef2841849ff67e7b5aedc22349e0d3b676babfa9..7c9ff09125781d86f55ea2ee05b2744d85866ab6 100644 (file)
@@ -3455,12 +3455,6 @@ ASTReader::ReadModuleMapFileBlock(RecordData &Record, ModuleFile &F,
   unsigned Idx = 0;
   F.ModuleMapPath = ReadPath(F, Record, Idx);
 
-  if (F.Kind == MK_ExplicitModule || F.Kind == MK_PrebuiltModule) {
-    // For an explicitly-loaded module, we don't care whether the original
-    // module map file exists or matches.
-    return Success;
-  }
-
   // Try to resolve ModuleName in the current header search context and
   // verify that it is found in the same module map file as we saved. If the
   // top-level AST file is a main file, skip this check because there is no