aboutsummaryrefslogtreecommitdiff
path: root/repl.c
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 /repl.c
parent2e2f68e5823cd3ad057993e0d4504107c6974fa4 (diff)
Add ReturnType(ret) so we can more accurately track return values for
`if` statements
Diffstat (limited to 'repl.c')
-rw-r--r--repl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/repl.c b/repl.c
index f4051451..e8cccfbc 100644
--- a/repl.c
+++ b/repl.c
@@ -98,6 +98,7 @@ const TypeInfo *type_to_type_info(type_t *t)
{
switch (t->tag) {
case AbortType: return &$Abort;
+ case ReturnType: errx(1, "Shouldn't be getting a typeinfo for ReturnType");
case VoidType: return &$Void;
case MemoryType: return &$Memory;
case BoolType: return &$Bool;