Scan unnamed unions
commitf5e51c07ff0005faf6b5ab033e6c430fd3e409fa
authorMadelaine Boyd <madelaine@fb.com>
Fri, 11 Nov 2016 01:05:51 +0000 (10 17:05 -0800)
committerHhvm Bot <hhvm-bot-bot@fb.com>
Fri, 11 Nov 2016 01:26:55 +0000 (10 17:26 -0800)
treedc496dbf72c5e83f215c88c291832f5fdf2485f3
parent72605bb45f5b8b2f03fb6d349e8b9d1cedefff53
Scan unnamed unions

Summary:
TYPE_SCAN_CONSERVATIVE_FIELD(foo) failed when foo was a member of an unnamed union.
The type scanner should treat members of an unnamed union as if they are members of the enclosing struct.

Reviewed By: ricklavoie

Differential Revision: D4093316

fbshipit-source-id: a0584978cc58386af409d9e250fb715bfdf112b3
hphp/runtime/base/autoload-handler.cpp
hphp/runtime/base/autoload-handler.h
hphp/runtime/vm/minstr-state.h
hphp/tools/type-info-gens/gen-type-scanners.cpp