mirror of
https://github.com/dlang/dmd.git
synced 2025-04-25 20:50:41 +03:00
fix tyToExtend() (#20979)
This commit is contained in:
parent
aafe4f954b
commit
d09d7689b6
1 changed files with 2 additions and 1 deletions
|
@ -183,7 +183,8 @@ void cdorth(ref CGstate cg, ref CodeBuilder cdb,elem* e,ref regm_t pretregs)
|
|||
*/
|
||||
Extend tyToExtend(tym_t ty)
|
||||
{
|
||||
assert(tyintegral(ty));
|
||||
//debug printf("ty: %x\n", ty);
|
||||
assert(tyintegral(ty) || ty == TYnptr);
|
||||
Extend extend;
|
||||
const sz = tysize(ty);
|
||||
with (Extend) switch (sz)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue