mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01:00
Adds explicit alignment information for alloca instructions in general, there's a few cases that still needs to be looked at but this should catch the majority. Fixes ticket #293 .
This commit is contained in:
@@ -129,7 +129,8 @@ DValue* DtoNewClass(Loc loc, TypeClass* tc, NewExp* newexp)
|
||||
LLValue* mem;
|
||||
if (newexp->onstack)
|
||||
{
|
||||
mem = DtoAlloca(DtoType(tc)->getContainedType(0), ".newclass_alloca");
|
||||
// FIXME align scope class to its largest member
|
||||
mem = DtoRawAlloca(DtoType(tc)->getContainedType(0), 0, ".newclass_alloca");
|
||||
}
|
||||
// custom allocator
|
||||
else if (newexp->allocator)
|
||||
|
||||
Reference in New Issue
Block a user