looking at.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141892
91177308-0d34-0410-b5e6-
96231b3b80d8
/// getOrCreateRegularScope - Find or create a regular lexical scope.
LexicalScope *LexicalScopes::getOrCreateRegularScope(MDNode *Scope) {
DIDescriptor D = DIDescriptor(Scope);
/// getOrCreateRegularScope - Find or create a regular lexical scope.
LexicalScope *LexicalScopes::getOrCreateRegularScope(MDNode *Scope) {
DIDescriptor D = DIDescriptor(Scope);
- if (D.isLexicalBlockFile())
+ if (D.isLexicalBlockFile()) {
Scope = DILexicalBlockFile(Scope).getScope();
Scope = DILexicalBlockFile(Scope).getScope();
+ D = DIDescriptor(Scope);
+ }
LexicalScope *WScope = LexicalScopeMap.lookup(Scope);
if (WScope)
LexicalScope *WScope = LexicalScopeMap.lookup(Scope);
if (WScope)