Fix a crash when compiling a file which contains an immutable class declaration

This commit is contained in:
Alexey Prokhin
2011-02-20 19:00:53 +03:00
parent 293f5bf880
commit f0a183f0e8
2 changed files with 11 additions and 11 deletions

View File

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