projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e301fd
)
[lld] s/dyn_cast/isa in InputSection.cpp
author
Pavel Labath
<pavel@labath.sk>
Mon, 24 Aug 2020 09:44:28 +0000
(11:44 +0200)
committer
Pavel Labath
<pavel@labath.sk>
Mon, 24 Aug 2020 09:45:30 +0000
(11:45 +0200)
Avoids a -Wunused-variable with gcc.
lld/ELF/InputSection.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/InputSection.cpp
b/lld/ELF/InputSection.cpp
index
914c4e0
..
ad4a128
100644
(file)
--- a/
lld/ELF/InputSection.cpp
+++ b/
lld/ELF/InputSection.cpp
@@
-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;