Fix a bug where we set AttrUnique on non-unique classes
commit0f65cc6791fcda21941aca03a256ee199275b94f
authorJordan DeLong <jdelong@fb.com>
Fri, 7 Feb 2014 00:24:07 +0000 (6 16:24 -0800)
committerSara Golemon <sgolemon@fb.com>
Wed, 12 Feb 2014 16:40:19 +0000 (12 08:40 -0800)
tree249c5864a0c15dd5c581b755bf799493ce8cc7c0
parentc506269ad6dbf1cd6da9d371561d40eed4f09cc4
Fix a bug where we set AttrUnique on non-unique classes

Hphpc was ignoring interfaces here, which means we could
decide a Class* is unique when it actually isn't, which could cause
problems.

Reviewed By: @jasone

Differential Revision: D1163158
hphp/compiler/analysis/analysis_result.cpp
hphp/compiler/analysis/class_scope.cpp
hphp/compiler/analysis/class_scope.h
hphp/compiler/analysis/emitter.cpp
hphp/compiler/analysis/type.cpp
hphp/compiler/expression/class_constant_expression.cpp
hphp/compiler/expression/new_object_expression.cpp
hphp/compiler/expression/object_property_expression.cpp
hphp/compiler/expression/simple_function_call.cpp
hphp/compiler/expression/static_member_expression.cpp