[llvm] a7f152f - [Bitcode] Fix -Wunused-but-set-variable in BitcodeReader.cpp (NFC)
Jie Fu via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 6 16:54:13 PDT 2024
Author: Jie Fu
Date: 2024-09-07T07:53:17+08:00
New Revision: a7f152f59b1d64c6e1698fc68ffff40c4911e11a
URL: https://github.com/llvm/llvm-project/commit/a7f152f59b1d64c6e1698fc68ffff40c4911e11a
DIFF: https://github.com/llvm/llvm-project/commit/a7f152f59b1d64c6e1698fc68ffff40c4911e11a.diff
LOG: [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.
Added:
Modified:
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index 250ba425a5d591..4d00b640c57be7 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;
More information about the llvm-commits
mailing list