mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-29 06:51:32 +00:00
[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:
1 parent
42ff39051d
commit
bbe0545061
1 file changed
+2
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user