Skip to content

Commit 3d1b000

Browse files
committed
[lld] s/dyn_cast/isa in InputSection.cpp
Avoids a -Wunused-variable with gcc.
1 parent 0e301fd commit 3d1b000

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lld/ELF/InputSection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ void InputSectionBase::relocateAlloc(uint8_t *buf, uint8_t *bufEnd) {
11041104
// a jmp insn must be modified to shrink the jmp insn or to flip the jmp
11051105
// insn. This is primarily used to relax and optimize jumps created with
11061106
// basic block sections.
1107-
if (auto *sec = dyn_cast<InputSection>(this)) {
1107+
if (isa<InputSection>(this)) {
11081108
for (const JumpInstrMod &jumpMod : jumpInstrMods) {
11091109
uint64_t offset = jumpMod.offset;
11101110
uint8_t *bufLoc = buf + offset;

0 commit comments

Comments
 (0)