mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Fix a crash when compiling a file which contains an immutable class declaration
This commit is contained in:
@@ -713,7 +713,7 @@ LLConstant* DtoDefineClassInfo(ClassDeclaration* cd)
|
||||
}
|
||||
else
|
||||
{
|
||||
const LLType* cd_type = cdty->irtype->getPA();
|
||||
const LLType* cd_type = stripModifiers(cdty)->irtype->getPA();
|
||||
size_t initsz = getTypePaddedSize(cd_type);
|
||||
b.push_void_array(initsz, ir->getInitSymbol());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user