commit | 53addbf446f848c0f165e5d2cbaca31fff796b36 | [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 | b31ea598704a4e5a07fbe3b9d8b2f4b95f713088 [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; }