mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-24 21:42:54 +02:00
Restore the behaviour from before r194728.
If getDIE() fails, getOrCreateContextDIE() should also return the CUDie. llvm-svn: 194843
This commit is contained in:
parent
d433cf7463
commit
1bbe61860d
@ -871,7 +871,9 @@ DIE *CompileUnit::getOrCreateContextDIE(DIScope Context) {
|
||||
return getOrCreateNameSpace(DINameSpace(Context));
|
||||
if (Context.isSubprogram())
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user