summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LexicalScopes.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-14 03:40:37 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-14 03:40:37 +0000
commit537b4a8159fc07709b9cb4b8c4e65c6deae358b3 (patch)
treeaabc381361f0e80b53ac261c8aaa936a7d0782e1 /llvm/lib/CodeGen/LexicalScopes.cpp
parent68adb7da1abdca258ccfb87e929a42fd7e7af940 (diff)
downloadbcm5719-llvm-537b4a8159fc07709b9cb4b8c4e65c6deae358b3.tar.gz
bcm5719-llvm-537b4a8159fc07709b9cb4b8c4e65c6deae358b3.zip
DebugInfo: Gut DISubprogram and DILexicalBlock*
Gut the `DIDescriptor` wrappers around `MDLocalScope` subclasses. Note that `DILexicalBlock` wraps `MDLexicalBlockBase`, not `MDLexicalBlock`. llvm-svn: 234850
Diffstat (limited to 'llvm/lib/CodeGen/LexicalScopes.cpp')
-rw-r--r--llvm/lib/CodeGen/LexicalScopes.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LexicalScopes.cpp b/llvm/lib/CodeGen/LexicalScopes.cpp
index 938fa0a8de3..d6998d6e1c5 100644
--- a/llvm/lib/CodeGen/LexicalScopes.cpp
+++ b/llvm/lib/CodeGen/LexicalScopes.cpp
@@ -157,8 +157,7 @@ LexicalScopes::getOrCreateRegularScope(const MDLocalScope *Scope) {
false)).first;
if (!Parent) {
- assert(
- DISubprogram(cast<MDSubprogram>(Scope)).describes(MF->getFunction()));
+ assert(cast<MDSubprogram>(Scope)->describes(MF->getFunction()));
assert(!CurrentFnLexicalScope);
CurrentFnLexicalScope = &I->second;
}
OpenPOWER on IntegriCloud