Allow nonconstants in associative array initializers

This commit is contained in:
Alexey Prokhin
2011-07-19 10:14:15 +04:00
parent bb2676dbe3
commit 99f5a73125
3 changed files with 53 additions and 40 deletions

View File

@@ -22,7 +22,10 @@ IrType::IrType(Type* dt, const llvm::Type* lt)
{
assert(dt && "null D Type");
assert(lt && "null LLVM Type");
#if !DMDV2
// FIXME: For some reason the assert fails
assert(dt->irtype == NULL && "already has IrType");
#endif
}
//////////////////////////////////////////////////////////////////////////////