diff gen/toir.cpp @ 114:5880c12dba83 trunk

[svn r118] Fixed dynamic casts. Fixed a few interface bugs.
author lindquist
date Sun, 25 Nov 2007 00:19:13 +0100
parents 27b9f749d9fe
children fd7ad91fd713
line wrap: on
line diff
--- a/gen/toir.cpp	Sat Nov 24 06:33:00 2007 +0100
+++ b/gen/toir.cpp	Sun Nov 25 00:19:13 2007 +0100
@@ -1289,7 +1289,7 @@
         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();