fix unexpected adata
commit9cd937f700bbd36917f9699f07cefd6fc940d696
authorSteve Cao <shiqicao@fb.com>
Thu, 2 Apr 2020 07:16:28 +0000 (2 00:16 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 2 Apr 2020 07:18:35 +0000 (2 00:18 -0700)
tree0186b4e32bdd7b7d31b24946de4c6111d2a7a1be
parent81f5240422c8d1c6d6cedcd4f52ae4df44d90a71
fix unexpected adata

Summary: `emit_return` has side effect, so it has to stay in the `None` branch, otherwise unexpected adata will be emitted.

Differential Revision: D20789992

fbshipit-source-id: 08902f357ff2d3b3646634c3c08167dab505cbf3
hphp/hack/src/hhbc/emit_statement.rs