diff options
author | Devang Patel <dpatel@apple.com> | 2009-01-14 01:34:32 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-01-14 01:34:32 +0000 |
commit | 4548d973998ceb254a6f69836d64210449dfaec7 (patch) | |
tree | 99df470b34c37c23f19d2de656b2451ce0183355 | |
parent | 07c2a78c2b9bf2500ece856c2df2dc043db9acb6 (diff) | |
download | external_llvm-4548d973998ceb254a6f69836d64210449dfaec7.zip external_llvm-4548d973998ceb254a6f69836d64210449dfaec7.tar.gz external_llvm-4548d973998ceb254a6f69836d64210449dfaec7.tar.bz2 |
Do not construct debug scope if RootScope *is* null.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62209 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp index ec17c48..0adbf17 100644 --- a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp @@ -2091,7 +2091,7 @@ private: void ConstructRootDbgScope(DbgScope *RootScope) { // Exit if there is no root scope. if (!RootScope) return; - if (!RootScope->getDesc()->isNull()) return; + if (RootScope->getDesc()->isNull()) return; // Get the subprogram debug information entry. DISubprogram SPD(RootScope->getDesc()->getGV()); |