From bbe0545061301c0cdaee6656ab5dbf20586a2501 Mon Sep 17 00:00:00 2001 From: Teresa Johnson Date: Wed, 24 Feb 2016 17:57:28 +0000 Subject: [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 --- llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/Bitcode') 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; } } } -- cgit v1.2.3