[lld] s/dyn_cast/isa in InputSection.cpp

Avoids a -Wunused-variable with gcc.
This commit is contained in:
Pavel Labath 2020-08-24 11:44:28 +02:00
parent 0e301fd023
commit 3d1b0000f9

View file

@ -1104,7 +1104,7 @@ void InputSectionBase::relocateAlloc(uint8_t *buf, uint8_t *bufEnd) {
// a jmp insn must be modified to shrink the jmp insn or to flip the jmp
// insn. This is primarily used to relax and optimize jumps created with
// basic block sections.
if (auto *sec = dyn_cast<InputSection>(this)) {
if (isa<InputSection>(this)) {
for (const JumpInstrMod &jumpMod : jumpInstrMods) {
uint64_t offset = jumpMod.offset;
uint8_t *bufLoc = buf + offset;