mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-30 11:33:14 +01:00
Fixed an undefined reference if a postblit is annotated with @disabled
This commit is contained in:
@@ -698,7 +698,10 @@ void TypeInfoStructDeclaration::llvmDefine()
|
||||
b.push_funcptr(sd->dtor);
|
||||
|
||||
//void function(void*) xpostblit;
|
||||
b.push_funcptr(sd->postblit);
|
||||
FuncDeclaration *xpostblit = sd->postblit;
|
||||
if (xpostblit && sd->postblit->storage_class & STCdisable)
|
||||
xpostblit = 0;
|
||||
b.push_funcptr(xpostblit);
|
||||
|
||||
//uint m_align;
|
||||
b.push_uint(tc->alignsize());
|
||||
|
||||
Reference in New Issue
Block a user