fixes type

This commit is contained in:
ringabout
2025-11-08 09:51:23 +08:00
parent daa0d15dd2
commit 042f3f70f7

View File

@@ -920,7 +920,7 @@ proc genDeref(p: BProc, e: PNode, d: var TLoc) =
else:
a = initLocExprSingleUse(p, e[0])
if e.typ.kind == tyObject:
if e.typ != nil and e.typ.kind == tyObject:
# bug #23453 #25265
discard getTypeDesc(p.module, e.typ)
if d.k == locNone: