projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc70523
)
Restore the behaviour from before r194728.
author
Adrian Prantl
<aprantl@apple.com>
Fri, 15 Nov 2013 19:53:23 +0000
(19:53 +0000)
committer
Adrian Prantl
<aprantl@apple.com>
Fri, 15 Nov 2013 19:53:23 +0000
(19:53 +0000)
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
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index ee3735cff5a95e58dd8868291dd3f1a82cbc3f39..e399508bb949ef88708ca959c418be490ee86ba9 100644
(file)
--- a/
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
+++ b/
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
@@
-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