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:
813e36c
)
Replace a dyn_cast with a cast. NFC.
author
Rafael Espindola
<rafael.espindola@gmail.com>
Wed, 29 Nov 2017 21:29:52 +0000
(21:29 +0000)
committer
Rafael Espindola
<rafael.espindola@gmail.com>
Wed, 29 Nov 2017 21:29:52 +0000
(21:29 +0000)
llvm-svn: 319361
lld/ELF/Thunks.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/Thunks.cpp
b/lld/ELF/Thunks.cpp
index
cce31ca
..
91ca3b9
100644
(file)
--- a/
lld/ELF/Thunks.cpp
+++ b/
lld/ELF/Thunks.cpp
@@
-372,8
+372,8
@@
void MicroMipsR6Thunk::addSymbols(ThunkSection &IS) {
}
InputSection *MicroMipsR6Thunk::getTargetInputSection() const {
- auto
*DR = dyn_cast<Defined>(&
Destination);
- return dyn_cast<InputSection>(DR
->
Section);
+ auto
&DR = cast<Defined>(
Destination);
+ return dyn_cast<InputSection>(DR
.
Section);
}
Thunk::Thunk(Symbol &D) : Destination(D), Offset(0) {}