summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2016-02-24 17:57:28 +0000
committerTeresa Johnson <tejohnson@google.com>2016-02-24 17:57:28 +0000
commitbbe0545061301c0cdaee6656ab5dbf20586a2501 (patch)
tree4f3d282669e05e3d0a1c8a36094d701a8eaee833 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent42ff39051d595ccac932c26b407c9c1bea025acc (diff)
downloadbcm5719-llvm-bbe0545061301c0cdaee6656ab5dbf20586a2501.tar.gz
bcm5719-llvm-bbe0545061301c0cdaee6656ab5dbf20586a2501.zip
[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
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index fbe9391a69a..06a120a5ff1 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -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;
}
}
}
OpenPOWER on IntegriCloud