Do not construct debug scope if RootScope *is* null.
authorDevang Patel <dpatel@apple.com>
Wed, 14 Jan 2009 01:34:32 +0000 (01:34 +0000)
committerDevang Patel <dpatel@apple.com>
Wed, 14 Jan 2009 01:34:32 +0000 (01:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62209 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfWriter.cpp

index ec17c480df7955857a9dd68a91efbc65848fb1e7..0adbf174f157e1c85720533cf30405fa21653455 100644 (file)
@@ -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());