mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 02:45:25 +03:00
Build vtable type lazily
This commit is contained in:
parent
7ebcae7b6b
commit
e1394fad5f
5 changed files with 23 additions and 20 deletions
|
@ -390,6 +390,7 @@ LLValue *DtoVirtualFunctionPointer(DValue *inst, FuncDeclaration *fdecl,
|
|||
|
||||
LLValue *funcval = vthis;
|
||||
// get the vtbl for objects
|
||||
stripModifiers(inst->type->toBasetype())->ctype->isClass()->getVtblType(true);
|
||||
funcval = DtoGEPi(funcval, 0, 0);
|
||||
// load vtbl ptr
|
||||
funcval = DtoLoad(funcval);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue