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

Rafael Auler rafaelauler at gmail.com
Thu Sep 18 14:36:08 PDT 2014


Hi rafael, Bigcheese,

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.

http://reviews.llvm.org/D5403

Files:
  lib/ReaderWriter/ELF/ELFLinkingContext.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5403.13849.patch
Type: text/x-patch
Size: 1541 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140918/02b20f93/attachment.bin>


More information about the llvm-commits mailing list