forked from OSchip/llvm-project
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:
parent
9a2c14a73a
commit
d42f7e5cae
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue