diff options
| author | 2023-06-05 12:27:27 +0200 | |
|---|---|---|
| committer | 2023-06-05 12:27:27 +0200 | |
| commit | fe81f55cf6bcddb2cd02ea7327fce1616dd763c2 (patch) | |
| tree | 927caa0900a7c619730c331fece75ce6e6420024 /amd64/sysv.c | |
| parent | d8ba699bae286cb29a6a965ee204804649f0bbc8 (diff) | |
fix classify ptrs
Diffstat (limited to 'amd64/sysv.c')
| -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; } } |