diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-06-27 00:29:32 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-06-27 00:29:32 +0000 |
commit | 92843707f6ffe60c2bed57cbbf17d08d65d46e22 (patch) | |
tree | 1522fc359fe258fc3f7fbcd218af24cbb61a5e6a | |
parent | 96b96c8e36e5a990b704ccb2b31988236a219104 (diff) | |
download | bcm5719-llvm-92843707f6ffe60c2bed57cbbf17d08d65d46e22.tar.gz bcm5719-llvm-92843707f6ffe60c2bed57cbbf17d08d65d46e22.zip |
Remove redundant check.
llvm-svn: 306350
-rw-r--r-- | clang/lib/Serialization/ASTReader.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/clang/lib/Serialization/ASTReader.cpp b/clang/lib/Serialization/ASTReader.cpp index ef2841849ff..7c9ff091257 100644 --- a/clang/lib/Serialization/ASTReader.cpp +++ b/clang/lib/Serialization/ASTReader.cpp @@ -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 |