morello: Adjust odr_types_equivalent_p for capabilities
Here we update the simple scalar case of odr_types_equivalent_p to also
handle INTCAP_TYPEs and use TYPE_CAP_PRECISION when checking for
precision mismatches. If the types disagree on their TYPE_CAP_PRECISION
(e.g. if one is a capability pointer and the other is a non-capability
pointer), then they cannot be ODR equivalent.
gcc/ChangeLog:
* ipa-devirt.c (odr_types_equivalent_p): Also handle
INTCAP_TYPE, use TYPE_CAP_PRECISION in scalar base case.