Fixed an undefined reference if a postblit is annotated with @disabled

This commit is contained in:
Alexey Prokhin
2011-07-19 20:20:00 +04:00
parent 6576b68dfd
commit 06baaacdc0

View File

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