[polly] Remove use of getWithSamePointeeType() (NFC)

GitOrigin-RevId: 34f73967aecfebcc0ab62d18af51ae57cfb5c33c
1 file changed