Permalink
Browse files

Do not fold darrays with double keys to static literals

Summary: as in title

Reviewed By: oulgen

Differential Revision: D6813437

fbshipit-source-id: 5523acea0c6ea1671a800a8bfa35b8963cf13c79
  • Loading branch information...
vladima authored and hhvm-bot committed Jan 26, 2018
1 parent 1955b18 commit 76ad9979a4a058a1df947ec9afdb0b4ffbb113d2
Showing with 2 additions and 2 deletions.
  1. +2 −2 hphp/hack/src/hhbc/ast_constant_folder.ml
@@ -245,9 +245,9 @@ and darray_to_typed_value ns fields =
| _ ->
(expr_to_typed_value ns v1, expr_to_typed_value ns v2)
| exception Failure _ ->
(expr_to_typed_value ns v1, expr_to_typed_value ns v2)
(key_expr_to_typed_value ns v1, expr_to_typed_value ns v2)
end
| _ -> (expr_to_typed_value ns v1, expr_to_typed_value ns v2))
| _ -> (key_expr_to_typed_value ns v1, expr_to_typed_value ns v2))
in
TV.DArray (update_duplicates_in_map fields)

0 comments on commit 76ad997

Please sign in to comment.