[lld] r319335 - Replace another dyn_cast with a cast.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 29 10:43:34 PST 2017
Author: rafael
Date: Wed Nov 29 10:43:34 2017
New Revision: 319335
URL: http://llvm.org/viewvc/llvm-project?rev=319335&view=rev
Log:
Replace another dyn_cast with a cast.
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=319335&r1=319334&r2=319335&view=diff
==============================================================================
--- lld/trunk/ELF/Thunks.cpp (original)
+++ lld/trunk/ELF/Thunks.cpp Wed Nov 29 10:43:34 2017
@@ -347,8 +347,8 @@ void MicroMipsThunk::addSymbols(ThunkSec
}
InputSection *MicroMipsThunk::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);
}
// Write microMIPS R6 LA25 thunk code
More information about the llvm-commits
mailing list