Skip to content

Commit c397436

Browse files
authored
fix tyToExtend() (#21628)
1 parent 0da73fe commit c397436

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • compiler/src/dmd/backend/arm

compiler/src/dmd/backend/arm/cod2.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ void cdorth(ref CGstate cg, ref CodeBuilder cdb,elem* e,ref regm_t pretregs)
201201
Extend tyToExtend(tym_t ty)
202202
{
203203
//debug printf("ty: %s\n", tym_str(ty));
204+
ty = tybasic(ty);
204205
assert(tyintegral(ty) || ty == TYnptr);
205206
Extend extend;
206207
const sz = tysize(ty);

0 commit comments

Comments
 (0)