[BOLT][NFC] Remove unused variable

Reviewed By: Amir

Differential Revision: https://reviews.llvm.org/D126808
This commit is contained in:
Maksim Panchenko 2022-06-01 12:29:34 -07:00
parent 4bc63858fc
commit 0426100ff4

View File

@ -1354,10 +1354,6 @@ bool BinaryFunction::disassemble() {
ItrE = Relocations.lower_bound(Offset + Size);
Itr != ItrE; ++Itr) {
const Relocation &Relocation = Itr->second;
uint64_t SymbolValue = Relocation.Value - Relocation.Addend;
if (Relocation.isPCRelative())
SymbolValue += getAddress() + Relocation.Offset;
int64_t Value = Relocation.Value;
const bool Result = BC.MIB->replaceImmWithSymbolRef(
Instruction, Relocation.Symbol, Relocation.Addend, Ctx.get(), Value,