diff options
| -rw-r--r-- | amd64/sysv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/amd64/sysv.c b/amd64/sysv.c index bc0b5d2..e2f5b7b 100644 --- a/amd64/sysv.c +++ b/amd64/sysv.c @@ -20,7 +20,7 @@ classifyarr(uchar cls[2], union type ty, uint off) if (!cls[offx/8]) cls[offx/8] = KF8; } else { /* INTEGER */ - assert(isint(chld)); + assert(isint(chld) || chld.t == TYPTR); cls[offx/8] = KI8; } } @@ -48,7 +48,7 @@ classify(uchar cls[2], const struct typedata *td, uint off) if (!cls[(fld->off + off)/8]) cls[(fld->off + off)/8] = KF8; } else { /* INTEGER */ - assert(isint(fld->t)); + assert(isint(fld->t) || chld.t == TYPTR); cls[(fld->off + off)/8] = KI8; } } |