Support pointers in types::type_size
This commit is contained in:
parent
8aec010bd0
commit
09f52ab0d2
1 changed files with 3 additions and 0 deletions
|
|
@ -160,6 +160,9 @@ namespace pslang::types
|
|||
if (std::get_if<unit_type>(&type))
|
||||
return 0;
|
||||
|
||||
if (std::get_if<pointer_type>(&type))
|
||||
return 8;
|
||||
|
||||
if (std::get_if<function_type>(&type))
|
||||
return 8;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue