Fix JIT bug with ContSuspendK
commit6a1bb238970c7ced69ca875b03cef8e3baa5289a
authorDrew Paroski <andrewparoski@fb.com>
Wed, 5 Mar 2014 10:53:53 +0000 (5 02:53 -0800)
committerSara Golemon <sgolemon@fb.com>
Fri, 7 Mar 2014 18:09:37 +0000 (7 10:09 -0800)
tree00d7d37a6c0c29a9759d1242b35595a769ac9171
parent11712202741075793841f7c596dbe81572531495
Fix JIT bug with ContSuspendK

ContSuspendK cares about the type of newKey, but the type of newKey wasn't
being constrained properly when hhir guard relaxation was enabled. This
diff fixes the issue.

Reviewed By: @swtaarrs

Differential Revision: D1203698
hphp/runtime/vm/jit/hhbc-translator.cpp
hphp/test/slow/yield/yield-key-value-bug.php [new file with mode: 0644]
hphp/test/slow/yield/yield-key-value-bug.php.expect [new file with mode: 0644]