mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-23 08:13:13 +01:00
Change from alloca to gc_malloc. The alloca produces a segfault with current llvm svn
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user