This is an archive of the discontinued LLVM Phabricator instance.

[LinkerWrapper] Fix errors not exiting inside of the LTO pipeline
ClosedPublic

Authored by jhuber6 on Jul 9 2022, 7:44 AM.

Details

Summary

The LTO pipeline handles its errors using the diagnostics handler
callback function. We were not checking the results of these errors and
not properly returning an error code in the linker wrapper when errors
occured inside of the LTO pipeline. This patch adds a simple boolean
flag to indicate if the LTO backend failed to any reason and quit.

Diff Detail

Event Timeline

jhuber6 created this revision.Jul 9 2022, 7:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 9 2022, 7:44 AM
Herald added a subscriber: inglorion. · View Herald Transcript
jhuber6 requested review of this revision.Jul 9 2022, 7:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 9 2022, 7:44 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
ye-luo accepted this revision.Jul 9 2022, 8:09 AM
This revision is now accepted and ready to land.Jul 9 2022, 8:09 AM