Page MenuHomePhabricator

[IR] Replace all uses of CallBase::getCalledValue() with getCalledOperand().

Authored by craig.topper on Apr 26 2020, 12:28 PM.



This method has been commented as deprecated for a while. Remove
it and replace all uses with the equivalent getCalledOperand().

I also made a few cleanups in here. For example, to removes use
of getElementType on a pointer when we could just use getFunctionType
from the call.

Diff Detail

Event Timeline

craig.topper created this revision.Apr 26 2020, 12:28 PM
Herald added a reviewer: ftynse. · View Herald Transcript
Herald added projects: Restricted Project, Restricted Project, Restricted Project. · View Herald Transcript
ftynse accepted this revision.Apr 27 2020, 2:03 AM


This revision is now accepted and ready to land.Apr 27 2020, 2:03 AM
dblaikie accepted this revision.Apr 27 2020, 7:26 PM

Looks great - thanks for the pointer type fixup(s) along the way too!

This revision was automatically updated to reflect the committed changes.