Mercurial > projects > ldc
diff gen/classes.cpp @ 657:c42173b3557b
Removed some checks for abstract llvm types that were too strict, a 'opaque* null' is a valid initializer... when structs in D can be just a forward reference.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Mon, 06 Oct 2008 14:37:00 +0200 |
parents | 8aebdf56c455 |
children | 92ec7487a1a0 |
line wrap: on
line diff
--- a/gen/classes.cpp Mon Oct 06 14:06:55 2008 +0200 +++ b/gen/classes.cpp Mon Oct 06 14:37:00 2008 +0200 @@ -1407,7 +1407,6 @@ } else { c = llvm::ConstantExpr::getBitCast(cd->ir.irStruct->init, byteptrty); - assert(!cd->ir.irStruct->constInit->getType()->isAbstract()); size_t initsz = getABITypeSize(cd->ir.irStruct->constInit->getType()); c = DtoConstSlice(DtoConstSize_t(initsz), c); }