Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the constant value unconditionally in deduce diagnostic
When finding the binding entity name, always go through the binding instruction's constant value to get a canonical instruction which will always have an entity name attached to it. Currently the only instructions in this position without an entity name are ImportRefLoaded. But other indirect instructions may exist in the future, which evaluate to an AnyBindName but are not themselves one. So this makes the code more robust to change in the future.
- Loading branch information