[llvm] ce2b280 - [BitcodeReader] Remove dead increment (#98412)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 11 17:42:15 PDT 2024
Author: Tom Stellard
Date: 2024-07-11T17:42:11-07:00
New Revision: ce2b28055330b37e67ece18bd42d13beb537955d
URL: https://github.com/llvm/llvm-project/commit/ce2b28055330b37e67ece18bd42d13beb537955d
DIFF: https://github.com/llvm/llvm-project/commit/ce2b28055330b37e67ece18bd42d13beb537955d.diff
LOG: [BitcodeReader] Remove dead increment (#98412)
This was found by the Clang Static Analyzer.
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 6203c6e5119d1..84d624f6cf8fa 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -4381,7 +4381,6 @@ Error BitcodeReader::parseGlobalIndirectSymbolRecord(
return error("Malformed partition, too large.");
NewGA->setPartition(
StringRef(Strtab.data() + Record[OpNum], Record[OpNum + 1]));
- OpNum += 2;
}
ValueList.push_back(NewGA, getVirtualTypeID(NewGA->getType(), TypeID));
More information about the llvm-commits
mailing list