Don't simplify away ConvObjToBool when it could be a collection interface
commitd043133821d52c9b6b615d47caea80804e17f5a5
authorJordan DeLong <jdelong@fb.com>
Mon, 28 Apr 2014 20:45:41 +0000 (28 13:45 -0700)
committerJoelMarcey <joelm@fb.com>
Fri, 2 May 2014 16:56:09 +0000 (2 09:56 -0700)
tree309e333ffc0f9d6a97f8ac9f3b60acc442b85f58
parentb3550ad91c1422cbe15b6aa4ef1a24d693b458de
Don't simplify away ConvObjToBool when it could be a collection interface

Summary: Types like ConstSet and Traversable don't have instanceCtor
on their Class*, but it could still be a collection dynamically.

Reviewed By: @swtaarrs

Differential Revision: D1299760
hphp/runtime/vm/jit/simplifier.cpp
hphp/test/slow/collection_classes/truthy-interface.php [new file with mode: 0644]
hphp/test/slow/collection_classes/truthy-interface.php.expect [new file with mode: 0644]