summaryrefslogtreecommitdiff
path: root/llvm_codegen.c
diff options
context:
space:
mode:
authorTom Harley2023-02-01 20:54:01 +0000
committerTom Harley2023-02-01 20:56:29 +0000
commit413d3126423da34540314f72b023bf373f2fb658 (patch)
treecd62c65a213be9375d3a6ecf47c19b883c665549 /llvm_codegen.c
parentAdd escape sequence interpretation (diff)
downloadsinter-413d3126423da34540314f72b023bf373f2fb658.tar.gz
sinter-413d3126423da34540314f72b023bf373f2fb658.zip

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.

Diffstat (limited to 'llvm_codegen.c')
-rw-r--r--llvm_codegen.c1
1 files changed, 1 insertions, 0 deletions
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