summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-01-26 21:04:07 -0800
committerKaz Kylheku <kaz@kylheku.com>2021-01-26 21:04:07 -0800
commitfb918f0e4ed4a13d993e25417190982b54905711 (patch)
treece5bc46cce802d5c09911d32fcde74a5ce8dc8f5
parent4e4868ae68688d78e54fd269bfd6866753ea8c85 (diff)
downloadtxr-fb918f0e4ed4a13d993e25417190982b54905711.tar.gz
txr-fb918f0e4ed4a13d993e25417190982b54905711.tar.bz2
txr-fb918f0e4ed4a13d993e25417190982b54905711.zip
compiler: get rid of vector from swtch syntax.
* share/txr/stdlib/compiler.tl (comp-switch): Convert the list of labels for the switch instruction from vector to list. This ends up a vector due to contagion from the sys:switch special operator syntax.
-rw-r--r--share/txr/stdlib/compiler.tl2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/txr/stdlib/compiler.tl b/share/txr/stdlib/compiler.tl
index 4b08cdf8..cf885b25 100644
--- a/share/txr/stdlib/compiler.tl
+++ b/share/txr/stdlib/compiler.tl
@@ -569,7 +569,7 @@
me.(maybe-free-treg treg oreg)
(new (frag oreg
^(,*ifrag.code
- (swtch ,ifrag.oreg ,*clabels)
+ (swtch ,ifrag.oreg ,*(list-vec clabels))
,*(mappend .code cfrags)
,*(when (and shared last-cfrag)
(maybe-mov oreg last-cfrag.oreg))