forked from OSchip/llvm-project
[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:
parent
c001775a3a
commit
3b285ff517
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue