aboutsummaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-07-13 18:43:50 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-07-13 18:43:50 -0400
commit39576466a7bcc545c49a9f17b188cc307a0c9d9c (patch)
tree848ead96c07d1038e8467ae93721482b274fbe05 /types.h
parent2e2f68e5823cd3ad057993e0d4504107c6974fa4 (diff)
Add ReturnType(ret) so we can more accurately track return values for
`if` statements
Diffstat (limited to 'types.h')
-rw-r--r--types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/types.h b/types.h
index 6d667c31..3debb575 100644
--- a/types.h
+++ b/types.h
@@ -39,6 +39,7 @@ struct type_s {
enum {
UnknownType,
AbortType,
+ ReturnType,
VoidType,
MemoryType,
BoolType,
@@ -61,6 +62,9 @@ struct type_s {
struct {
} UnknownType, AbortType, VoidType, MemoryType, BoolType;
struct {
+ type_t *ret;
+ } ReturnType;
+ struct {
int64_t bits;
} IntType;
struct {