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:
David Nadlinger
2013-05-04 21:20:09 +02:00
parent f2662c3660
commit 0a376b9c71
3 changed files with 7 additions and 2 deletions

View File

@@ -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;