This is an archive of the discontinued LLVM Phabricator instance.

[AbstractCallSite] Look though constant cast expression when checking for callee use
ClosedPublic

Authored by sdmitriev on Apr 30 2020, 11:01 AM.

Details

Summary

That makes AbstractCallSite::isCallee(const Use *) behavior consistent with AbstractCallSite constructor.

Diff Detail

Event Timeline

sdmitriev created this revision.Apr 30 2020, 11:01 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 30 2020, 11:01 AM
jdoerfert accepted this revision.Apr 30 2020, 1:00 PM

LGTM, THX!

llvm/include/llvm/IR/AbstractCallSite.h
148

I checked and it still matches. At some point I locally removed the single use restriction actually. Nothing for this patch but just for your information ;)

This revision is now accepted and ready to land.Apr 30 2020, 1:00 PM
This revision was automatically updated to reflect the committed changes.