mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 00:55:49 +03:00
Small harmless refactoring
This commit is contained in:
parent
30b858781b
commit
c7fbdb1a5c
4 changed files with 2 additions and 35 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue