From 413d3126423da34540314f72b023bf373f2fb658 Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Wed, 1 Feb 2023 20:54:01 +0000 Subject: Return correctly when checking TRMD of string lit When trying to determine if an expression is tail-recursive, this should not error in the case that the expression is a string literal. --- llvm_codegen.c | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm_codegen.c') diff --git a/llvm_codegen.c b/llvm_codegen.c index 044fc05..5827a9b 100644 --- a/llvm_codegen.c +++ b/llvm_codegen.c @@ -637,6 +637,7 @@ tail_recursive_t is_tail_recursive(char *id, sexpr *ast) { case INT: case ID: + case STRING: /* * just an ID here means that the function is returning a constant * function pointer -- cgit v1.2.1