summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--share/txr/stdlib/compiler.tl3
1 files changed, 2 insertions, 1 deletions
diff --git a/share/txr/stdlib/compiler.tl b/share/txr/stdlib/compiler.tl
index a5fd9e0d..e56287c7 100644
--- a/share/txr/stdlib/compiler.tl
+++ b/share/txr/stdlib/compiler.tl
@@ -1372,7 +1372,8 @@
[mapdo compile-form (cdr form)]))
(eval-only (let ((*emit* nil))
[mapdo compile-form (cdr form)]))
- (t (when (or *eval* *emit*)
+ (t (when (and (or *eval* *emit*)
+ (not (constantp form)))
(let* ((vm-desc (compile-toplevel form))
(flat-vd (list-from-vm-desc vm-desc)))
(when *eval*