Fix a crash which occurs when compiling std/conv.d with unittests

This commit is contained in:
Alexey Prokhin 2011-11-01 17:06:13 +04:00
parent 6ef7ee6d32
commit 4ab6869c50

View file

@ -293,7 +293,7 @@ DValue* DtoCastClass(DValue* val, Type* _to)
// get the from class
ClassDeclaration* cd = fc->sym->isClassDeclaration();
DtoResolveClass(cd); // add this
IrTypeClass* typeclass = fc->irtype->isClass();
IrTypeClass* typeclass = stripModifiers(fc)->irtype->isClass();
// find interface impl