diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-03-09 04:48:35 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-03-09 04:48:35 +0000 |
| commit | 4ba1da94686b3bff553f01c2a87b037cd07e43d2 (patch) | |
| tree | b0760d6647403939c3509238387d9e6ce6a64121 /lib/CodeGen | |
| parent | 4b64a67cbc845b36b6352ca4bc0eb69c8b77cc5f (diff) | |
| download | external_llvm-4ba1da94686b3bff553f01c2a87b037cd07e43d2.zip external_llvm-4ba1da94686b3bff553f01c2a87b037cd07e43d2.tar.gz external_llvm-4ba1da94686b3bff553f01c2a87b037cd07e43d2.tar.bz2 | |
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
Diffstat (limited to 'lib/CodeGen')
| -rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index af651a7..9a53431 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1365,6 +1365,7 @@ DIE *DwarfDebug::updateSubprogramScopeDIE(MDNode *SPNode) { DIE *DwarfDebug::constructLexicalScopeDIE(DbgScope *Scope) { MCSymbol *Start = Scope->getStartLabel(); MCSymbol *End = Scope->getEndLabel(); + if (Start == 0) return 0; assert(Start->isDefined() && "Invalid starting 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) { MCSymbol *StartLabel = Scope->getStartLabel(); MCSymbol *EndLabel = Scope->getEndLabel(); + if (StartLabel == 0) return 0; + assert(StartLabel->isDefined() && "Invalid starting label for an inlined scope!"); assert(EndLabel->isDefined() && |
