aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorJie Fu <jiefu@tencent.com>2024-09-07 07:53:17 +0800
committerJie Fu <jiefu@tencent.com>2024-09-07 07:53:17 +0800
commita7f152f59b1d64c6e1698fc68ffff40c4911e11a (patch)
treecde4b35a33315228446c7722800475430bd84a93 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent748ae69b5d0ed9205e9da5121bd780d283aab164 (diff)
downloadllvm-a7f152f59b1d64c6e1698fc68ffff40c4911e11a.zip
llvm-a7f152f59b1d64c6e1698fc68ffff40c4911e11a.tar.gz
llvm-a7f152f59b1d64c6e1698fc68ffff40c4911e11a.tar.bz2
[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.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index 250ba42..4d00b64 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -7792,7 +7792,6 @@ Error ModuleSummaryIndexBitcodeReader::parseEntireSummary(unsigned ID) {
uint64_t RawFlags = Record[2];
unsigned InstCount = Record[3];
uint64_t RawFunFlags = 0;
- uint64_t EntryCount = 0;
unsigned NumRefs = Record[4];
unsigned NumRORefs = 0, NumWORefs = 0;
int RefListStartIndex = 5;
@@ -7806,7 +7805,6 @@ Error ModuleSummaryIndexBitcodeReader::parseEntireSummary(unsigned ID) {
RefListStartIndex = 7;
if (Version >= 6) {
NumRefsIndex = 6;
- EntryCount = Record[5];
RefListStartIndex = 8;
if (Version >= 7) {
RefListStartIndex = 9;