mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Increased RTTIBuilder buffer to 14 constants, to be big enough for !ClassInfo as well as !TypeInfo
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user