Mercurial > projects > ldc
changeset 1031:e594385d7e53
Fixed potential assertion failure in taking address of function as a constant expression.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Tue, 03 Mar 2009 17:27:14 +0100 |
parents | 3ead5c40b7d6 |
children | 85521b52dbf8 |
files | gen/toir.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gen/toir.cpp Tue Mar 03 17:21:35 2009 +0100 +++ b/gen/toir.cpp Tue Mar 03 17:27:14 2009 +0100 @@ -975,8 +975,8 @@ // static function else if (FuncDeclaration* fd = vexp->var->isFuncDeclaration()) { + DtoForceDeclareDsymbol(fd); IrFunction* irfunc = fd->ir.irFunc; - assert(irfunc); return irfunc->func; } // something else