mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-02 11:30:10 +00:00
Restore the behaviour from before r194728.
If getDIE() fails, getOrCreateContextDIE() should also return the CUDie. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194843 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cc7052343e
commit
7d5f2bd5f9
@ -871,7 +871,9 @@ DIE *CompileUnit::getOrCreateContextDIE(DIScope Context) {
|
|||||||
return getOrCreateNameSpace(DINameSpace(Context));
|
return getOrCreateNameSpace(DINameSpace(Context));
|
||||||
if (Context.isSubprogram())
|
if (Context.isSubprogram())
|
||||||
return getOrCreateSubprogramDIE(DISubprogram(Context));
|
return getOrCreateSubprogramDIE(DISubprogram(Context));
|
||||||
return getDIE(Context);
|
if (DIE *ContextDIE = getDIE(Context))
|
||||||
|
return ContextDIE;
|
||||||
|
return getCUDie();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// getOrCreateTypeDIE - Find existing DIE or create new DIE for the
|
/// getOrCreateTypeDIE - Find existing DIE or create new DIE for the
|
||||||
|
Loading…
Reference in New Issue
Block a user