mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 13:56:06 +00:00
[lld] s/dyn_cast/isa in InputSection.cpp
Avoids a -Wunused-variable with gcc.
This commit is contained in:
parent
0e301fd023
commit
3d1b0000f9
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user