summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-03-30 22:09:52 +0000
committerDevang Patel <dpatel@apple.com>2010-03-30 22:09:52 +0000
commit57c644f926fea024c81160f201c4f5c2aeed0fb5 (patch)
tree899bf56f45aa99ecac4bb9b620bd6e66d6a38008 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parent504662f28f93c8c65e1c15b768e2d95ca205bd03 (diff)
downloadbcm5719-llvm-57c644f926fea024c81160f201c4f5c2aeed0fb5.tar.gz
bcm5719-llvm-57c644f926fea024c81160f201c4f5c2aeed0fb5.zip
Ignore invalid metadata.
llvm-svn: 99938
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index d3d5b2992d2..00a98fba0b4 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -2163,6 +2163,7 @@ bool DwarfDebug::extractScopeInformation() {
if (DL.isUnknown()) continue;
DILocation DLT = MF->getDILocation(DL);
DIScope DLTScope = DLT.getScope();
+ if (!DLTScope.getNode()) continue;
// There is no need to create another DIE for compile unit. For all
// other scopes, create one DbgScope now. This will be translated
// into a scope DIE at the end.
@@ -2184,6 +2185,7 @@ bool DwarfDebug::extractScopeInformation() {
if (DL.isUnknown()) continue;
DILocation DLT = MF->getDILocation(DL);
DIScope DLTScope = DLT.getScope();
+ if (!DLTScope.getNode()) continue;
// There is no need to create another DIE for compile unit. For all
// other scopes, create one DbgScope now. This will be translated
// into a scope DIE at the end.
OpenPOWER on IntegriCloud