[llvm-commits] [llvm] r62209 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
Devang Patel
dpatel at apple.com
Tue Jan 13 17:34:32 PST 2009
Author: dpatel
Date: Tue Jan 13 19:34:32 2009
New Revision: 62209
URL: http://llvm.org/viewvc/llvm-project?rev=62209&view=rev
Log:
Do not construct debug scope if RootScope *is* null.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp?rev=62209&r1=62208&r2=62209&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp Tue Jan 13 19:34:32 2009
@@ -2091,7 +2091,7 @@
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());
More information about the llvm-commits
mailing list