diff options
| author | Devang Patel <dpatel@apple.com> | 2009-09-04 23:59:07 +0000 | 
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2009-09-04 23:59:07 +0000 | 
| commit | f5d5360065bc89d92a1a35790c38256904717469 (patch) | |
| tree | b63acd15e5c45f85024244006a52d1bb6bb8af12 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
| parent | 34ec2ef159c0d712ee66364228bd16dbe7f5e390 (diff) | |
| download | bcm5719-llvm-f5d5360065bc89d92a1a35790c38256904717469.tar.gz bcm5719-llvm-f5d5360065bc89d92a1a35790c38256904717469.zip | |
Ignore malformed global variable debug info.
llvm-svn: 81055
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 0e55b545833..bc4333d9c1b 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1482,6 +1482,10 @@ void DwarfDebug::ConstructCompileUnit(MDNode *N) {  void DwarfDebug::ConstructGlobalVariableDIE(MDNode *N) {    DIGlobalVariable DI_GV(N); +   +  // If debug information is malformed then ignore it. +  if (DI_GV.Verify() == false) +    return;    // Check for pre-existence.    DIE *&Slot = ModuleCU->getDieMapSlotFor(DI_GV.getNode()); | 

