Răsfoiți Sursa

Fixed create_block with promises

We should set the tail and not the promise as the value of the label in the basic blocks dictionary.
Tanish Lad 3 ani în urmă
părinte
comite
ce875d7844
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      book.tex

+ 1 - 1
book.tex

@@ -9396,7 +9396,7 @@ return a \code{Goto} to the new label.
       [(Goto label) (Goto label)]
       [else
         (let ([label (gensym 'block)])
-          (set! basic-blocks (cons (cons label tail) basic-blocks))
+          (set! basic-blocks (cons (cons label t) basic-blocks))
           (Goto label))]))
 \end{lstlisting}
 \end{minipage}