diff --git a/gen/classes.cpp b/gen/classes.cpp index 9c0376ff..7e48d548 100644 --- a/gen/classes.cpp +++ b/gen/classes.cpp @@ -1407,7 +1407,6 @@ void DtoDefineClassInfo(ClassDeclaration* cd) } 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); } diff --git a/gen/llvmhelpers.cpp b/gen/llvmhelpers.cpp index 63ae443d..f1cad18d 100644 --- a/gen/llvmhelpers.cpp +++ b/gen/llvmhelpers.cpp @@ -960,8 +960,6 @@ void DtoConstInitGlobal(VarDeclaration* vd) _type = _init->getType(); llvm::cast(vd->ir.irGlobal->type.get())->refineAbstractTypeTo(_type); _type = vd->ir.irGlobal->type.get(); - //_type->dump(); - assert(!_type->isAbstract()); llvm::GlobalVariable* gvar = llvm::cast(vd->ir.irGlobal->value); if (!(vd->storage_class & STCextern) && (vd->getModule() == gIR->dmodule || istempl))