summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2014-12-29 20:59:02 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2014-12-29 20:59:02 +0000
commit4c79845125604abf73441e30c29188849b575979 (patch)
tree356b55d5756ab522a36e8a4d531102ef7cc2ca35 /llvm/lib
parentbda31b42a0b4fc4e233b13a89fc194fef2fea2a4 (diff)
downloadbcm5719-llvm-4c79845125604abf73441e30c29188849b575979.tar.gz
bcm5719-llvm-4c79845125604abf73441e30c29188849b575979.zip
Remove unnecessary StringRef->std::string conversion.
llvm-svn: 224953
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Support/Unix/Path.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc
index 8de94c11dce..973d010dcac 100644
--- a/llvm/lib/Support/Unix/Path.inc
+++ b/llvm/lib/Support/Unix/Path.inc
@@ -150,7 +150,7 @@ std::string getMainExecutable(const char *argv0, void *MainAddr) {
// /proc is not always mounted under Linux (chroot for example).
ssize_t len = readlink(aPath.str().c_str(), exe_path, sizeof(exe_path));
if (len >= 0)
- return StringRef(exe_path, len);
+ return std::string(exe_path, len);
} else {
// Fall back to the classical detection.
if (getprogpath(exe_path, argv0) != NULL)
OpenPOWER on IntegriCloud