summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-07-24 18:58:32 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-07-24 18:58:32 +0000
commit099ea1c9aecdb6f9ec46fc4d3a637b0a6c192645 (patch)
tree4fd584a1336fb976c96cf87c3c6f6cce3668f11b /llvm/lib/CodeGen/AsmPrinter
parentf021b9b3b318fa08828911a71dab6620b1c2159c (diff)
downloadbcm5719-llvm-099ea1c9aecdb6f9ec46fc4d3a637b0a6c192645.tar.gz
bcm5719-llvm-099ea1c9aecdb6f9ec46fc4d3a637b0a6c192645.zip
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. llvm-svn: 243138
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index d05df017d7a..5611ae6fcd8 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -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());
}
OpenPOWER on IntegriCloud