]> git.eshelyaron.com Git - emacs.git/commit
b-c--cond-jump-table-info: Use correct body for singleton clauses
authorVibhav Pant <vibhavp@gmail.com>
Sat, 22 Apr 2017 15:08:53 +0000 (20:38 +0530)
committerVibhav Pant <vibhavp@gmail.com>
Sat, 22 Apr 2017 16:38:15 +0000 (22:08 +0530)
commit1c91bc9221d12618c9fb5507561dd35b7e392cb6
tree515cbb3f08814413ef43359d047c5bd9273ea024
parentace38bafa6ae0d40bf3fac9f998c8ecbe36d5f41
b-c--cond-jump-table-info: Use correct body for singleton clauses

* lisp/emacs-lisp/bytecomp.el (byte-compile-cond-jump-table-info):
When a clause's body consists of a single constant expression, use
that expression as the body to be compiled. This fixes switch bytecode
evaluating to nil to such clauses.
lisp/emacs-lisp/bytecomp.el