This is an archive of the discontinued LLVM Phabricator instance.

[ThinLTO] Fix printing of WPD remarks
ClosedPublic

Authored by tejohnson on Jul 28 2018, 8:30 AM.

Details

Summary

When WPD is performed in a ThinLTO backend, the function may be created
if it isn't already in that module. Module::getOrInsertFunction may
add a bitcast, in which case the returned Constant is not a Function and
doesn't have a name. Invoke stripPointerCasts() on the returned value
where we access its name.

Diff Detail

Repository
rL LLVM

Event Timeline

tejohnson created this revision.Jul 28 2018, 8:30 AM
pcc accepted this revision.Aug 13 2018, 3:53 PM

LGTM

This revision is now accepted and ready to land.Aug 13 2018, 3:53 PM
This revision was automatically updated to reflect the committed changes.