llvm.org GIT mirror llvm / af94b8a
Remove unnecessary StringRef->std::string conversion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224953 91177308-0d34-0410-b5e6-96231b3b80d8 Alexey Samsonov 4 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
149149 // /proc is not always mounted under Linux (chroot for example).
150150 ssize_t len = readlink(aPath.str().c_str(), exe_path, sizeof(exe_path));
151151 if (len >= 0)
152 return StringRef(exe_path, len);
152 return std::string(exe_path, len);
153153 } else {
154154 // Fall back to the classical detection.
155155 if (getprogpath(exe_path, argv0) != NULL)