Mercurial > projects > ldc
comparison gen/classes.cpp @ 840:a125ada7fd95
more moreatatime fixes
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Tue, 09 Dec 2008 18:45:25 +0100 |
parents | 162a0502a6b9 |
children | f1ed7fe85138 |
comparison
equal
deleted
inserted
replaced
839:162a0502a6b9 | 840:a125ada7fd95 |
---|---|
1057 // class -> interface - static cast | 1057 // class -> interface - static cast |
1058 else if (it->isBaseOf(fc->sym,NULL)) { | 1058 else if (it->isBaseOf(fc->sym,NULL)) { |
1059 Logger::println("static down cast"); | 1059 Logger::println("static down cast"); |
1060 // get the from class | 1060 // get the from class |
1061 ClassDeclaration* cd = fc->sym->isClassDeclaration(); | 1061 ClassDeclaration* cd = fc->sym->isClassDeclaration(); |
1062 DtoResolveClass(cd); // add this | |
1062 IrStruct* irstruct = cd->ir.irStruct; | 1063 IrStruct* irstruct = cd->ir.irStruct; |
1063 // find interface impl | 1064 // find interface impl |
1064 IrStruct::InterfaceMapIter iriter = irstruct->interfaceMap.find(it); | 1065 IrStruct::InterfaceMapIter iriter = irstruct->interfaceMap.find(it); |
1065 assert(iriter != irstruct->interfaceMap.end()); | 1066 assert(iriter != irstruct->interfaceMap.end()); |
1066 IrInterface* iri = iriter->second; | 1067 IrInterface* iri = iriter->second; |