Do not construct debug scope if RootScope *is* null.

llvm-svn: 62209
This commit is contained in:
Devang Patel 2009-01-14 01:34:32 +00:00
parent da4930d361
commit cf0db71b85

View 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());