This is an archive of the discontinued LLVM Phabricator instance.

[gold] Remove inconsistent llvm_unreachable()
ClosedPublic

Authored by davide on Jan 21 2016, 2:25 PM.

Details

Summary

message(LDPL_FATAL, ...) should never return. This is the only place in the gold-plugin code where we put an unreachable() after that to ensure the invariant is satisfied. I think that we can either add llvm_unreachable() after each use of LDPL_FATAL in the source file, or remove this one.
I just don't like the inconsistency, so I vote for the removal.

Diff Detail

Repository
rL LLVM

Event Timeline

davide updated this revision to Diff 45596.Jan 21 2016, 2:25 PM
davide retitled this revision from to [gold] Remove inconsistent llvm_unreachable().
davide updated this object.
davide added reviewers: rafael, mehdi_amini.
davide added a subscriber: llvm-commits.
rafael edited edge metadata.Jan 22 2016, 12:37 PM
rafael added a subscriber: rafael.

It might be there to avoid a warning.

LGTM if no warnings with GCC or clang.

Cheers,
Rafael

This revision was automatically updated to reflect the committed changes.