diff options
| author | Tom Harley | 2023-02-01 20:54:01 +0000 |
|---|---|---|
| committer | Tom Harley | 2023-02-01 20:56:29 +0000 |
| commit | 413d3126423da34540314f72b023bf373f2fb658 (patch) | |
| tree | cd62c65a213be9375d3a6ecf47c19b883c665549 | |
| parent | Add escape sequence interpretation (diff) | |
| download | sinter-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.
| -rw-r--r-- | llvm_codegen.c | 1 |
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 |
