aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
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
commite383a18a02da3c25c6b60ee055ddef373bf89955 (patch)
treebf278febf2e81f55482927c03832f513f1259b84 /lib/CodeGen
parent7a9a90a1cbdf96b9ff71b1ec4c010d466bab3c55 (diff)
downloadexternal_llvm-e383a18a02da3c25c6b60ee055ddef373bf89955.zip
external_llvm-e383a18a02da3c25c6b60ee055ddef373bf89955.tar.gz
external_llvm-e383a18a02da3c25c6b60ee055ddef373bf89955.tar.bz2
Ignore invalid metadata.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99938 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index d3d5b29..00a98fb 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/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.