Replace a dyn_cast with a cast.

It is always accessed, so there is no value in a dyn_cast.

llvm-svn: 319334
This commit is contained in:
Rafael Espindola 2017-11-29 18:32:57 +00:00
parent 9a2c14a73a
commit d42f7e5cae

View File

@ -322,8 +322,8 @@ void MipsThunk::addSymbols(ThunkSection &IS) {
}
InputSection *MipsThunk::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 R2-R5 LA25 thunk code