mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 06:31:18 +00:00
DI: Strengthen block-byref cast to DIDerivedType, NFC
This code is visiting the members of a block-byref, and we know those are all `DIDerivedType`. Strengthen the cast. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243138 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2914cbf164
commit
e4a9f1b6e7
@ -189,7 +189,7 @@ const DIType *DbgVariable::getType() const {
|
||||
|
||||
auto Elements = cast<DICompositeType>(subType)->getElements();
|
||||
for (unsigned i = 0, N = Elements.size(); i < N; ++i) {
|
||||
auto *DT = cast<DIDerivedTypeBase>(Elements[i]);
|
||||
auto *DT = cast<DIDerivedType>(Elements[i]);
|
||||
if (getName() == DT->getName())
|
||||
return resolve(DT->getBaseType());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user