HomePhabricator

[IR] Ignore bitcasts of function pointers which are only used as callees in…

Authored by madhur13490 on Mar 18 2021, 11:15 AM.

Description

[IR] Ignore bitcasts of function pointers which are only used as callees in callbase instruction

This patch enhances hasAddressTaken() to ignore bitcasts as a
callee in callbase instruction. Such bitcast usage doesn't really take
the address in a useful meaningful way.

Reviewed By: rampitec

Differential Revision: https://reviews.llvm.org/D98884