aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/LockFileManager.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2024-05-20 22:55:24 -0700
committerGitHub <noreply@github.com>2024-05-20 22:55:24 -0700
commite411c88b7223d87520af819fdc012c9dbb46e575 (patch)
tree0eec33cecc8ba2a829c75e97114e3e4db1a5dcdc /llvm/lib/Support/LockFileManager.cpp
parent312c132467717461f3b00eccddbd615aa6aa483b (diff)
downloadllvm-e411c88b7223d87520af819fdc012c9dbb46e575.zip
llvm-e411c88b7223d87520af819fdc012c9dbb46e575.tar.gz
llvm-e411c88b7223d87520af819fdc012c9dbb46e575.tar.bz2
Use StringRef::find_first_of(char), etc (NFC) (#92841)
Diffstat (limited to 'llvm/lib/Support/LockFileManager.cpp')
-rw-r--r--llvm/lib/Support/LockFileManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/LockFileManager.cpp b/llvm/lib/Support/LockFileManager.cpp
index 083f8d7..3169aa2 100644
--- a/llvm/lib/Support/LockFileManager.cpp
+++ b/llvm/lib/Support/LockFileManager.cpp
@@ -66,7 +66,7 @@ LockFileManager::readLockFile(StringRef LockFileName) {
StringRef Hostname;
StringRef PIDStr;
std::tie(Hostname, PIDStr) = getToken(MB.getBuffer(), " ");
- PIDStr = PIDStr.substr(PIDStr.find_first_not_of(" "));
+ PIDStr = PIDStr.substr(PIDStr.find_first_not_of(' '));
int PID;
if (!PIDStr.getAsInteger(10, PID)) {
auto Owner = std::make_pair(std::string(Hostname), PID);