Emit an implicit break at the end of last case block in switch statements
commit5b6f83008b9a16c212b4563b8d15a6803dd9e937
authorOguz Ulgen <oulgen@fb.com>
Fri, 14 Feb 2020 19:19:09 +0000 (14 11:19 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 14 Feb 2020 19:37:37 +0000 (14 11:37 -0800)
tree61b3dc4d43b62a21a7e3a00de138280c5b315702
parentea792922fd5462a77c45482685d61d0999424876
Emit an implicit break at the end of last case block in switch statements

Summary: Start emitting a break at the end of last case statement since on the next diff we will start emitting implicit default blocks when there is none and these will eventually start throwing.

Reviewed By: alexeyt

Differential Revision: D19818352

fbshipit-source-id: f86f37f6d9d28db3163ed0f27e4ef47c16250830
hphp/hack/src/hhbc/emit_statement.ml