Increased RTTIBuilder buffer to 14 constants, to be big enough for !ClassInfo as well as !TypeInfo

This commit is contained in:
Tomas Lindquist Olsen
2009-05-17 16:29:49 +02:00
parent dc4b7e8118
commit b1fa43ce24
2 changed files with 2 additions and 1 deletions

View File

@@ -663,6 +663,7 @@ LLConstant* DtoDefineClassInfo(ClassDeclaration* cd)
// void *deallocator;
// OffsetTypeInfo[] offTi;
// void *defaultConstructor;
// TypeInfo typeinfo; // since dmd 1.045
// }
Logger::println("DtoDefineClassInfo(%s)", cd->toChars());

View File

@@ -17,7 +17,7 @@ struct RTTIBuilder
IrStruct* baseir;
// 10 is enough for any D1 typeinfo
llvm::SmallVector<llvm::Constant*, 10> inits;
llvm::SmallVector<llvm::Constant*, 14> inits;
RTTIBuilder(ClassDeclaration* base_class);