[llvm-profgen] Fix a set-but-unused warning

This patch fixes:

  llvm/tools/llvm-profgen/ProfiledBinary.cpp:357:12: error: variable
  'EndOffset' set but not used [-Werror,-Wunused-but-set-variable]

The last use of the variable was removed on Oct 26 in commit
40ca411251.
This commit is contained in:
Kazu Hirata 2021-10-29 10:19:44 -07:00
parent c001775a3a
commit 3b285ff517
1 changed files with 0 additions and 3 deletions

View File

@ -354,7 +354,6 @@ bool ProfiledBinary::dissassembleSymbol(std::size_t SI, ArrayRef<uint8_t> Bytes,
};
uint64_t Offset = StartOffset;
uint64_t EndOffset = 0;
// Size of a consecutive invalid instruction range starting from Offset -1
// backwards.
uint64_t InvalidInstLength = 0;
@ -403,8 +402,6 @@ bool ProfiledBinary::dissassembleSymbol(std::size_t SI, ArrayRef<uint8_t> Bytes,
else if (MCDesc.isReturn())
RetAddrs.insert(Offset);
EndOffset = Offset;
if (InvalidInstLength) {
WarnInvalidInsts(Offset - InvalidInstLength, Offset - 1);
InvalidInstLength = 0;