diff options
author | Andy Wingo <wingo@pobox.com> | 2011-04-14 16:53:18 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2011-04-14 16:53:18 +0200 |
commit | 3936cebc77bfbde57bb3fe904b26943e54a9d618 (patch) | |
tree | 888f01cd4211afc867f124e361498be7b7feadca | |
parent | 90779ad9a1d8b2533ad8495753677aebf5626571 (diff) | |
download | guile-3936cebc77bfbde57bb3fe904b26943e54a9d618.tar.gz |
fix analyze.scm literal string warnings
* module/language/tree-il/analyze.scm (const-fmt): Return any literal
value, not just strings. The string case is checked later.
-rw-r--r-- | module/language/tree-il/analyze.scm | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/module/language/tree-il/analyze.scm b/module/language/tree-il/analyze.scm index 61357f821..23eff2ce2 100644 --- a/module/language/tree-il/analyze.scm +++ b/module/language/tree-il/analyze.scm @@ -1347,10 +1347,9 @@ accurate information is missing from a given `tree-il' element." (define (const-fmt x) (record-case x ((<const> exp) - ;; String literals. - (and (string? exp) exp)) + exp) ((<application> proc args) - ;; Gettexted string literals, like `(_ "foo")'. + ;; Gettexted literals, like `(_ "foo")'. (and (record-case proc ((<toplevel-ref> name) (eq? name '_)) ((<module-ref> name) (eq? name '_)) @@ -1358,8 +1357,7 @@ accurate information is missing from a given `tree-il' element." (pmatch args ((,fmt) (record-case fmt - ((<const> exp) - (and (string? exp) exp)) + ((<const> exp) exp) (else #f))) (else #f)))) (else #f))) |