Fixed some minitest regressions.

This commit is contained in:
Tomas Lindquist Olsen
2009-04-16 19:21:30 +02:00
parent 5db458d8da
commit 9a86f9c0b5
9 changed files with 272 additions and 53 deletions

View File

@@ -486,8 +486,7 @@ LLValue* DtoVirtualFunctionPointer(DValue* inst, FuncDeclaration* fdecl)
LLValue* funcval = vthis;
// get the vtbl for objects
if (!fdecl->isMember()->isInterfaceDeclaration())
funcval = DtoGEPi(funcval, 0, 0, "tmp");
funcval = DtoGEPi(funcval, 0, 0, "tmp");
// load vtbl ptr
funcval = DtoLoad(funcval);
// index vtbl