From 4548d973998ceb254a6f69836d64210449dfaec7 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Wed, 14 Jan 2009 01:34:32 +0000 Subject: [PATCH] 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 --- lib/CodeGen/AsmPrinter/DwarfWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp index ec17c480df7..0adbf174f15 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());