summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShankar Easwaran <shankare@codeaurora.org>2013-08-22 17:59:03 +0000
committerShankar Easwaran <shankare@codeaurora.org>2013-08-22 17:59:03 +0000
commit89732e136273e747f6aaea6bfdee31fa66ada880 (patch)
tree7619d5d08417947bd5c904d0b9288805ad32469f
parentd8bf850359f87869a496fdefff0101265fa6f412 (diff)
downloadbcm5719-llvm-89732e136273e747f6aaea6bfdee31fa66ada880.tar.gz
bcm5719-llvm-89732e136273e747f6aaea6bfdee31fa66ada880.zip
[lld][PECOFF] Fix one more reference to a temporary string
llvm-svn: 189035
-rw-r--r--lld/lib/Driver/WinLinkDriver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/lib/Driver/WinLinkDriver.cpp b/lld/lib/Driver/WinLinkDriver.cpp
index 42c8b11f6c0..bd39dcda72c 100644
--- a/lld/lib/Driver/WinLinkDriver.cpp
+++ b/lld/lib/Driver/WinLinkDriver.cpp
@@ -201,7 +201,7 @@ StringRef PECOFFFileNode::path(const LinkingContext &) const {
StringRef PECOFFLibraryNode::path(const LinkingContext &) const {
if (!_path.endswith(".lib"))
- return _ctx.searchLibraryFile(_path.str() + ".lib");
+ return _ctx.searchLibraryFile(_ctx.allocateString(_path.str() + ".lib"));
return _ctx.searchLibraryFile(_path);
}
OpenPOWER on IntegriCloud