mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-11 23:16:20 +00:00
add some extra checks. I'm not sure why, but this does unbreak a
failure remaining on mainline. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98046 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7ef1840d9e
commit
6c7dfc0463
@ -1365,6 +1365,7 @@ DIE *DwarfDebug::updateSubprogramScopeDIE(MDNode *SPNode) {
|
|||||||
DIE *DwarfDebug::constructLexicalScopeDIE(DbgScope *Scope) {
|
DIE *DwarfDebug::constructLexicalScopeDIE(DbgScope *Scope) {
|
||||||
MCSymbol *Start = Scope->getStartLabel();
|
MCSymbol *Start = Scope->getStartLabel();
|
||||||
MCSymbol *End = Scope->getEndLabel();
|
MCSymbol *End = Scope->getEndLabel();
|
||||||
|
if (Start == 0) return 0;
|
||||||
|
|
||||||
assert(Start->isDefined() && "Invalid starting label for an inlined scope!");
|
assert(Start->isDefined() && "Invalid starting label for an inlined scope!");
|
||||||
assert(End->isDefined() && "Invalid end label for an inlined scope!");
|
assert(End->isDefined() && "Invalid end label for an inlined scope!");
|
||||||
@ -1387,6 +1388,8 @@ DIE *DwarfDebug::constructLexicalScopeDIE(DbgScope *Scope) {
|
|||||||
DIE *DwarfDebug::constructInlinedScopeDIE(DbgScope *Scope) {
|
DIE *DwarfDebug::constructInlinedScopeDIE(DbgScope *Scope) {
|
||||||
MCSymbol *StartLabel = Scope->getStartLabel();
|
MCSymbol *StartLabel = Scope->getStartLabel();
|
||||||
MCSymbol *EndLabel = Scope->getEndLabel();
|
MCSymbol *EndLabel = Scope->getEndLabel();
|
||||||
|
if (StartLabel == 0) return 0;
|
||||||
|
|
||||||
assert(StartLabel->isDefined() &&
|
assert(StartLabel->isDefined() &&
|
||||||
"Invalid starting label for an inlined scope!");
|
"Invalid starting label for an inlined scope!");
|
||||||
assert(EndLabel->isDefined() &&
|
assert(EndLabel->isDefined() &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user