commit | 2f105c6e18b1cf0507be74dd03779b675d254a30 | [log] [tgz] |
---|---|---|
author | Devang Patel <dpatel@apple.com> | Wed Nov 11 00:18:40 2009 +0000 |
committer | Devang Patel <dpatel@apple.com> | Wed Nov 11 00:18:40 2009 +0000 |
tree | f0b2c45ec8c84c6dd9bf98dc5222bd73a31553df | |
parent | f40888dc9b2b1a28fb4e7ba9a1fc930461e251aa [diff] [blame] |
While creating DbgScopes, do not forget parent scope. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86763 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 2849723..75b42cd 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -2124,6 +2124,8 @@ return; WScope = new DbgScope(NULL, DIDescriptor(Scope), NULL); DbgScopeMap.insert(std::make_pair(Scope, WScope)); + if (DIDescriptor(Scope).isLexicalBlock()) + createDbgScope(DILexicalBlock(Scope).getContext().getNode(), NULL); return; }