diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-15 23:19:27 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-15 23:19:27 +0000 |
commit | 35ef22cf530c4d3f2c1de83ae6a4186c1b1efa84 (patch) | |
tree | 448b5435d3f87d8e94969a89fd766afb4ae97511 /llvm/lib/IR/DebugInfo.cpp | |
parent | 798d565fd8a1f5a4a753587e5425efbdc59a5e0c (diff) | |
download | bcm5719-llvm-35ef22cf530c4d3f2c1de83ae6a4186c1b1efa84.tar.gz bcm5719-llvm-35ef22cf530c4d3f2c1de83ae6a4186c1b1efa84.zip |
DebugInfo: Gut DICompileUnit and DIFile
Continuing gutting `DIDescriptor` subclasses; this edition,
`DICompileUnit` and `DIFile`. In the name of PR23080.
llvm-svn: 235055
Diffstat (limited to 'llvm/lib/IR/DebugInfo.cpp')
-rw-r--r-- | llvm/lib/IR/DebugInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp index 3e34572c044..f396721efec 100644 --- a/llvm/lib/IR/DebugInfo.cpp +++ b/llvm/lib/IR/DebugInfo.cpp @@ -78,8 +78,8 @@ DITypeIdentifierMap llvm::generateDITypeIdentifierMap(const NamedMDNode *CU_Nodes) { DITypeIdentifierMap Map; for (unsigned CUi = 0, CUe = CU_Nodes->getNumOperands(); CUi != CUe; ++CUi) { - DICompileUnit CU = cast<MDCompileUnit>(CU_Nodes->getOperand(CUi)); - DIArray Retain = CU.getRetainedTypes(); + auto *CU = cast<MDCompileUnit>(CU_Nodes->getOperand(CUi)); + DIArray Retain = CU->getRetainedTypes(); for (unsigned Ti = 0, Te = Retain.size(); Ti != Te; ++Ti) { if (!isa<MDCompositeType>(Retain[Ti])) continue; |