Skip to content

Commit a7f152f

Browse files
committed
[Bitcode] Fix -Wunused-but-set-variable in BitcodeReader.cpp (NFC)
/llvm-project/llvm/lib/Bitcode/Reader/BitcodeReader.cpp:7795:16: error: variable 'EntryCount' set but not used [-Werror,-Wunused-but-set-variable] uint64_t EntryCount = 0; ^ 1 error generated.
1 parent 748ae69 commit a7f152f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

llvm/lib/Bitcode/Reader/BitcodeReader.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7792,7 +7792,6 @@ Error ModuleSummaryIndexBitcodeReader::parseEntireSummary(unsigned ID) {
77927792
uint64_t RawFlags = Record[2];
77937793
unsigned InstCount = Record[3];
77947794
uint64_t RawFunFlags = 0;
7795-
uint64_t EntryCount = 0;
77967795
unsigned NumRefs = Record[4];
77977796
unsigned NumRORefs = 0, NumWORefs = 0;
77987797
int RefListStartIndex = 5;
@@ -7806,7 +7805,6 @@ Error ModuleSummaryIndexBitcodeReader::parseEntireSummary(unsigned ID) {
78067805
RefListStartIndex = 7;
78077806
if (Version >= 6) {
78087807
NumRefsIndex = 6;
7809-
EntryCount = Record[5];
78107808
RefListStartIndex = 8;
78117809
if (Version >= 7) {
78127810
RefListStartIndex = 9;

0 commit comments

Comments
 (0)