[ThinLTO] Add missing breaks when parsing summaries (NFC)

This wasn't causing a correctness issue, but was causing extra duplicate
entries to be added to the SummaryMap.

llvm-svn: 261757
This commit is contained in:
Teresa Johnson 2016-02-24 17:57:28 +00:00
parent 42ff39051d
commit bbe0545061
1 changed files with 2 additions and 0 deletions

View File

@ -5643,6 +5643,7 @@ std::error_code FunctionIndexBitcodeReader::parseEntireSummary() {
FS->setModulePath(
TheIndex->addModulePath(Buffer->getBufferIdentifier(), 0));
SummaryMap[ValueID] = std::move(FS);
break;
}
// FS_COMBINED_ENTRY: [modid, linkage, instcount]
case bitc::FS_CODE_COMBINED_ENTRY: {
@ -5654,6 +5655,7 @@ std::error_code FunctionIndexBitcodeReader::parseEntireSummary() {
FS->setFunctionLinkage(getDecodedLinkage(RawLinkage));
FS->setModulePath(ModuleIdMap[ModuleId]);
SummaryMap[CurRecordBit] = std::move(FS);
break;
}
}
}