wcc: add the size primitive type (TY_SIZE), classify as unsigned int (#85)
fold-1: type exists + classifies; mirrors TY_UINTPTR at every site, both stages. size(T)/len() return types UNCHANGED (fold-2). Regenerates the 5 combined.ww (lib/ww embedded).
This commit is contained in:
@@ -711,7 +711,7 @@ let_emit_size(Type *t)
|
||||
case TY_BOOL: case TY_RUNE:
|
||||
case TY_I8: case TY_I16: case TY_I32: case TY_I64:
|
||||
case TY_U8: case TY_U16: case TY_U32: case TY_U64:
|
||||
case TY_INT: case TY_UINT: case TY_UINTPTR:
|
||||
case TY_INT: case TY_UINT: case TY_UINTPTR: case TY_SIZE:
|
||||
case TY_PTR:
|
||||
return 8;
|
||||
case TY_F32:
|
||||
|
||||
Reference in New Issue
Block a user