forked from OSchip/llvm-project
[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:
parent
42ff39051d
commit
bbe0545061
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue