[lld] r319361 - Replace a dyn_cast with a cast. NFC.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 29 13:29:52 PST 2017
Author: rafael
Date: Wed Nov 29 13:29:52 2017
New Revision: 319361
URL: http://llvm.org/viewvc/llvm-project?rev=319361&view=rev
Log:
Replace a dyn_cast with a cast. NFC.
Modified:
lld/trunk/ELF/Thunks.cpp
Modified: lld/trunk/ELF/Thunks.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Thunks.cpp?rev=319361&r1=319360&r2=319361&view=diff
==============================================================================
--- lld/trunk/ELF/Thunks.cpp (original)
+++ lld/trunk/ELF/Thunks.cpp Wed Nov 29 13:29:52 2017
@@ -372,8 +372,8 @@ void MicroMipsR6Thunk::addSymbols(ThunkS
}
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) {}
More information about the llvm-commits
mailing list