]> sourceware.org Git - cgen.git/commitdiff
Invalid code in rtx-traverse.scm
authorTom Tromey <tom@tromey.com>
Sat, 19 Aug 2023 17:41:31 +0000 (11:41 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 22 Aug 2023 16:52:33 +0000 (10:52 -0600)
The Guile compiler pointed out a 3-argument call to cons in
rtx-traverse.scm.  Presumably this code is never run, but this patch
replaces it with what I think is the correct form.

rtl-traverse.scm

index de7911a9008d5c51b02757bdb46bcf0a64048634..6023648766422d1e24324fbfdc0f6afdf36c2756 100644 (file)
        (if (procedure? fn)
            ; Don't traverse operands for syntax expressions.
            (if (eq? (rtx-style rtx-obj) 'SYNTAX)
-               (apply fn (cons tstate cdr expr))
+               (apply fn (cons tstate (cdr expr)))
                (let ((operands (/rtx-traverse-operands rtx-obj expr tstate appstuff)))
                  (apply fn (cons tstate operands))))
            fn)
This page took 0.024865 seconds and 5 git commands to generate.