diff options
| author | Shankar Easwaran <shankare@codeaurora.org> | 2013-08-22 17:59:03 +0000 |
|---|---|---|
| committer | Shankar Easwaran <shankare@codeaurora.org> | 2013-08-22 17:59:03 +0000 |
| commit | 89732e136273e747f6aaea6bfdee31fa66ada880 (patch) | |
| tree | 7619d5d08417947bd5c904d0b9288805ad32469f | |
| parent | d8bf850359f87869a496fdefff0101265fa6f412 (diff) | |
| download | bcm5719-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.cpp | 2 |
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); } |

