Mercurial > projects > ldc
diff gen/statements.cpp @ 137:ce7b81fb957f trunk
[svn r141] fixed more problems with classinfo
moved more IR state out of the AST classes
author | lindquist |
---|---|
date | Fri, 18 Jan 2008 16:42:16 +0100 |
parents | 0e28624814e8 |
children | a27941d00351 |
line wrap: on
line diff
--- a/gen/statements.cpp Thu Jan 17 03:15:12 2008 +0100 +++ b/gen/statements.cpp Fri Jan 18 16:42:16 2008 +0100 @@ -130,13 +130,12 @@ Logger::println("ExpStatement::toIR(): %s", loc.toChars()); LOG_SCOPE; - if (global.params.llvmAnnotate) - DtoAnnotation(exp->toChars()); - if (global.params.symdebug) DtoDwarfStopPoint(loc.linnum); - if (exp != 0) { + if (exp) { + if (global.params.llvmAnnotate) + DtoAnnotation(exp->toChars()); elem* e = exp->toElem(p); delete e; }