Use a more appropriate way of writing 1.

llvm-svn: 246524
This commit is contained in:
Richard Smith 2015-09-01 02:02:09 +00:00
parent 7f0674d6f0
commit 86f14e09a6
1 changed files with 1 additions and 2 deletions

View File

@ -7268,8 +7268,7 @@ unsigned ASTReader::getModuleFileID(ModuleFile *F) {
// files loaded beforehand will be the same on reload.
// FIXME: Is this true even if we have an explicit module file and a PCH?
if (F->isModule())
// FIXME: BaseSubmoduleID appears to be off by one.
return ((F->BaseSubmoduleID + 1) << 1) | 1;
return ((F->BaseSubmoduleID + NUM_PREDEF_SUBMODULE_IDS) << 1) | 1;
auto PCHModules = getModuleManager().pch_modules();
auto I = std::find(PCHModules.begin(), PCHModules.end(), F);