mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 18:26:05 +00:00
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…
x
Reference in New Issue
Block a user