noop refactor: split find_const up
commit1f3db607caf638d2f8ced18975ed044558596169
authorMax Heiber <mheiber@meta.com>
Thu, 27 Oct 2022 16:20:29 +0000 (27 09:20 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 27 Oct 2022 16:20:29 +0000 (27 09:20 -0700)
treeb40b07225d8537bb06d3913a808c841e4396b2b2
parentcc4df6b212d4e29eff3463c28ad97bd706806a8b
noop refactor: split find_const up

Summary:
Factor `find_const` into two separate functions.

Why:
- In D40355451, we need a version of this calculation that doesn't depend on having a constant identifier (reference to the constant)

Reviewed By: madgen

Differential Revision: D40355454

fbshipit-source-id: 8bb8f3752620c661caaf5f794737c74649a0e986
hphp/hack/src/hips/hips_solver.ml