[llvm] r301713 - Remove set but unused variable in BitcodeReader.cpp. NFC.
Hans Wennborg via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 28 16:11:16 PDT 2017
Author: hans
Date: Fri Apr 28 18:11:16 2017
New Revision: 301713
URL: http://llvm.org/viewvc/llvm-project?rev=301713&view=rev
Log:
Remove set but unused variable in BitcodeReader.cpp. NFC.
Modified:
llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp
Modified: llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp?rev=301713&r1=301712&r2=301713&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp (original)
+++ llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp Fri Apr 28 18:11:16 2017
@@ -4969,7 +4969,6 @@ Error ModuleSummaryIndexBitcodeReader::p
// "OriginalName" attachement.
GlobalValueSummary *LastSeenSummary = nullptr;
GlobalValue::GUID LastSeenGUID = 0;
- bool Combined = false;
// We can expect to see any number of type ID information records before
// each function summary records; these variables store the information
@@ -5136,7 +5135,6 @@ Error ModuleSummaryIndexBitcodeReader::p
LastSeenGUID = GUID;
FS->setModulePath(ModuleIdMap[ModuleId]);
TheIndex.addGlobalValueSummary(GUID, std::move(FS));
- Combined = true;
break;
}
// FS_COMBINED_ALIAS: [valueid, modid, flags, valueid]
@@ -5162,7 +5160,6 @@ Error ModuleSummaryIndexBitcodeReader::p
GlobalValue::GUID GUID = getGUIDFromValueId(ValueID).first;
LastSeenGUID = GUID;
TheIndex.addGlobalValueSummary(GUID, std::move(AS));
- Combined = true;
break;
}
// FS_COMBINED_GLOBALVAR_INIT_REFS: [valueid, modid, flags, n x valueid]
@@ -5179,7 +5176,6 @@ Error ModuleSummaryIndexBitcodeReader::p
GlobalValue::GUID GUID = getGUIDFromValueId(ValueID).first;
LastSeenGUID = GUID;
TheIndex.addGlobalValueSummary(GUID, std::move(FS));
- Combined = true;
break;
}
// FS_COMBINED_ORIGINAL_NAME: [original_name]
More information about the llvm-commits
mailing list