mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-28 10:33:14 +01:00
Avoid unnecessary memset when allocating array literals.
This completes the merge of pull request #294. Thanks a lot to Chris Holdsworth who originally wrote the patch! GitHub: Fixes #294. GitHub: Fixes #141.
This commit is contained in:
@@ -358,7 +358,7 @@ FunctionPass *createGarbageCollect2Stack() {
|
||||
GarbageCollect2Stack::GarbageCollect2Stack()
|
||||
: FunctionPass(ID),
|
||||
AllocMemoryT(0, true, false),
|
||||
NewArrayVT(0, true, false, false, 1),
|
||||
NewArrayVT(0, true, true, false, 1),
|
||||
NewArrayT(0, true, true, true, 1)
|
||||
{
|
||||
KnownFunctions["_d_allocmemoryT"] = &AllocMemoryT;
|
||||
|
||||
Reference in New Issue
Block a user