This is an archive of the discontinued LLVM Phabricator instance.

[lld] Fix buggy Twine storage in ELFLinkingContext::searchLibrary()
ClosedPublic

Authored by rafaelauler on Sep 18 2014, 2:36 PM.

Details

Summary

This patch fixes a forbidden use of Twine. It should only be used as an intermediary value, but never stored.

This caused a bug in lld when running on Linux and compiled with optimizations - it couldn't properly search libs.

Diff Detail

Event Timeline

rafaelauler retitled this revision from to [lld] Fix buggy Twine storage in ELFLinkingContext::searchLibrary().
rafaelauler updated this object.
rafaelauler edited the test plan for this revision. (Show Details)
rafaelauler added reviewers: rafael, Bigcheese.
rafaelauler added a subscriber: Unknown Object (MLST).
ruiu accepted this revision.Sep 18 2014, 2:43 PM
ruiu added a reviewer: ruiu.
ruiu added a subscriber: ruiu.

LGTM but please run clang-format before submitting.

This revision is now accepted and ready to land.Sep 18 2014, 2:43 PM

Already ran clang-format.

Could you please submit this patch? I do not have commit access.

ruiu added a comment.Sep 18 2014, 3:16 PM

Committed in r218083.

rafaelauler closed this revision.Sep 29 2014, 3:38 PM