mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-28 06:24:57 +00:00
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
This commit is contained in:
@ -2124,6 +2124,8 @@ void DwarfDebug::createDbgScope(MDNode *Scope, MDNode *InlinedAt) {
|
||||
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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user