Mercurial > projects > ldc
changeset 181:ef4108f34db6 trunk
[svn r197] Fixed: empty scope statement segfaulted.
author | lindquist |
---|---|
date | Wed, 07 May 2008 19:34:41 +0200 |
parents | 90522b72128a |
children | 6526cf5bb2be |
files | gen/statements.cpp llvmdc.kdevelop.filelist |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gen/statements.cpp Wed May 07 18:46:56 2008 +0200 +++ b/gen/statements.cpp Wed May 07 19:34:41 2008 +0200 @@ -223,7 +223,8 @@ gIR->scope() = IRScope(beginbb, endbb); - statement->toIR(p); + if (statement) + statement->toIR(p); p->scope() = IRScope(p->scopebb(),oldend); endbb->eraseFromParent();