From 9f3596079c36cda8476a76b82ef8a78cddd9ea6c Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Mon, 29 Aug 1988 23:14:17 +0000 Subject: [PATCH] Must not pop return address unless it has been pushed. --- v7/src/compiler/rtlgen/rgretn.scm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/v7/src/compiler/rtlgen/rgretn.scm b/v7/src/compiler/rtlgen/rgretn.scm index 59d292f9c..98da40aad 100644 --- a/v7/src/compiler/rtlgen/rgretn.scm +++ b/v7/src/compiler/rtlgen/rgretn.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/compiler/rtlgen/rgretn.scm,v 4.6 1988/08/18 06:50:25 cph Exp $ +$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/compiler/rtlgen/rgretn.scm,v 4.7 1988/08/29 23:14:17 cph Exp $ Copyright (c) 1988 Massachusetts Institute of Technology @@ -75,7 +75,11 @@ MIT in each case. |# (if not-on-stack? (return-operator/pop-frames block operator offset 0) (scfg*scfg->scfg! - (return-operator/pop-frames block operator offset 1) + (return-operator/pop-frames + block + operator + offset + (if (continuation/always-known-operator? continuation) 0 1)) (generate/continuation-entry/pop-extra continuation))) operand offset -- 2.25.1