[svn r118] Fixed dynamic casts.

Fixed a few interface bugs.
This commit is contained in:
Tomas Lindquist Olsen
2007-11-25 00:19:13 +01:00
parent b43f5729b0
commit 541a677a54
11 changed files with 243 additions and 49 deletions

View File

@@ -1289,7 +1289,7 @@ DValue* DotVarExp::toElem(IRState* p)
if (e1type->ty == Tclass) {
TypeClass* tc = (TypeClass*)e1type;
if (tc->sym->isInterfaceDeclaration()) {
vthis2 = DtoCastInterfaceToObject(l)->getRVal();
vthis2 = DtoCastInterfaceToObject(l, NULL)->getRVal();
}
}
llvm::Value* vthis = l->getRVal();