mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-16 21:03:14 +01:00
Fix a crash which occurs when compiling std/conv.d with unittests
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user