Replace StringRef with std::string in LinkerDriver::addLibrary(StringRef Name) becaus...
authorGeorge Rimar <grimar@accesssoftek.com>
Fri, 29 Jan 2016 10:52:52 +0000 (10:52 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Fri, 29 Jan 2016 10:52:52 +0000 (10:52 +0000)
commit2c9b7bd3263c6f0239d9b26feb595b8b98197f19
treec2c490bab9507bb80a8586bf5e3af8c2a0ac1a77
parent24785bd0b8a322c832550f3521d19e4aa6782dc0
Replace StringRef with std::string in LinkerDriver::addLibrary(StringRef Name) because std::string is destroyed after assigning what fills the buffer with garbage and StringRef is no more valid.
That fixes few failing tests under windows+msvs2015(debug).

llvm-svn: 259186
lld/ELF/Driver.cpp