summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2005-07-16 18:39:14 +0000
committerRichard M. Stallman <rms@gnu.org>2005-07-16 18:39:14 +0000
commit300f994a93cf97aab2be1a7fa0333f8bc02d3475 (patch)
treeccae7e5a5080b59a4277614e6a66a04af9e16d31 /lisp/emacs-lisp
parent2b632b1668bbf671c84af69db30ac8865ef6d812 (diff)
downloademacs-300f994a93cf97aab2be1a7fa0333f8bc02d3475.tar.gz
emacs-300f994a93cf97aab2be1a7fa0333f8bc02d3475.tar.bz2
emacs-300f994a93cf97aab2be1a7fa0333f8bc02d3475.zip
(byte-compile-if): Guard the else-clause too.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/bytecomp.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 21d7cd001cf..92d594945a3 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -3409,7 +3409,8 @@ warnings during execution of BODY."
(byte-compile-form (nth 2 form) for-effect))
(byte-compile-goto 'byte-goto donetag)
(byte-compile-out-tag elsetag)
- (byte-compile-body (cdr (cdr (cdr form))) for-effect)
+ (byte-compile-maybe-guarded (list 'not clause)
+ (byte-compile-body (cdr (cdr (cdr form))) for-effect))
(byte-compile-out-tag donetag))))
(setq for-effect nil))