Change from alloca to gc_malloc. The alloca produces a segfault with current llvm svn

This commit is contained in:
Christian Kamm
2008-07-24 18:21:48 +02:00
parent 169fe68a25
commit d4ab377db0

View File

@@ -264,9 +264,9 @@ extern (C) Array _adReverse(Array a, size_t szelem)
if (szelem > 16)
{
//version (Win32)
tmp = cast(byte*) alloca(szelem);
//tmp = cast(byte*) alloca(szelem);
//else
//tmp = gc_malloc(szelem);
tmp = cast(byte*) gc_malloc(szelem);
}
for (; lo < hi; lo += szelem, hi -= szelem)