This is an archive of the discontinued LLVM Phabricator instance.

[ThinLTO] Ensure the TargetLibraryInfo is constructed early enough
ClosedPublic

Authored by tejohnson on Jul 12 2018, 6:36 PM.

Details

Summary

Without this change, the WholeProgramDevirt pass, which requires the
TargetLibraryInfo, will construct one from the default triple.

Fixes PR38139.

Diff Detail

Repository
rL LLVM

Event Timeline

tejohnson created this revision.Jul 12 2018, 6:36 PM
dmajor added a subscriber: dmajor.Jul 12 2018, 8:21 PM
This revision is now accepted and ready to land.Jul 23 2018, 9:43 AM
This revision was automatically updated to reflect the committed changes.