Small harmless refactoring

This commit is contained in:
Martin 2017-10-14 14:55:36 +02:00
parent 30b858781b
commit c7fbdb1a5c
4 changed files with 2 additions and 35 deletions

View file

@ -1236,9 +1236,7 @@ LLConstant *DtoTypeInfoOf(Type *type, bool base) {
type->toChars(), base);
LOG_SCOPE
type = type->merge2(); // needed.. getTypeInfo does the same
getTypeInfoType(type, nullptr);
TypeInfoDeclaration *tidecl = type->vtinfo;
TypeInfoDeclaration *tidecl = getOrCreateTypeInfoDeclaration(type, nullptr);
assert(tidecl);
Declaration_codegen(tidecl);
assert(getIrGlobal(tidecl)->value != NULL);