OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bd2ffa
)
Remove unnecessary StringRef->std::string conversion.
author
Alexey Samsonov
<vonosmas@gmail.com>
Mon, 29 Dec 2014 20:59:02 +0000
(20:59 +0000)
committer
Alexey Samsonov
<vonosmas@gmail.com>
Mon, 29 Dec 2014 20:59:02 +0000
(20:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224953
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/Unix/Path.inc
patch
|
blob
|
history
diff --git
a/lib/Support/Unix/Path.inc
b/lib/Support/Unix/Path.inc
index
8de94c1
..
973d010
100644
(file)
--- a/
lib/Support/Unix/Path.inc
+++ b/
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)