Work-in-progress towards getting generic new array expressions working.

Swift SVN r2509
This commit is contained in:
Eli Friedman
2012-08-02 21:36:33 +00:00
parent 80d9613ce1
commit a87d83b7b8
7 changed files with 182 additions and 72 deletions

View File

@@ -106,10 +106,8 @@ void swift::irgen::emitNewArrayExpr(IRGenFunction &IGF, NewArrayExpr *E,
length = bounds.claimUnmanagedNext();
}
const TypeInfo &elementTI = IGF.getFragileTypeInfo(E->getElementType());
Expr *init = nullptr;
ArrayHeapLayout layout(IGF.IGM, elementTI);
ArrayHeapLayout layout(IGF, E->getElementType());
Address begin;
ManagedValue alloc =