Warn about unreachable code.

svn: r12146
This commit is contained in:
Sam Tobin-Hochstadt 2008-10-27 20:03:16 +00:00
parent 5db61f199f
commit 0f347883dd

View File

@ -52,6 +52,8 @@
(if (null? effs)
;; base case
(let* ([reachable? (not (unbox flag))])
(unless reachable?
(warn-unreachable expr))
(cond
;; if flag is true, then we don't want to verify that this branch has the appropriate type
;; in particular, it might be (void)