aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectWatchpoint.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2021-10-23 20:41:46 -0700
committerKazu Hirata <kazu@google.com>2021-10-23 20:41:46 -0700
commit4ba9d9c84f4ce05eec341dc5f2d1c95934ab3d2c (patch)
treed127aa2ceec425f7f62b38470af69a9a05be5b41 /lldb/source/Commands/CommandObjectWatchpoint.cpp
parenta709787cd988aaca847995bd08cc9348c9c6c956 (diff)
downloadllvm-4ba9d9c84f4ce05eec341dc5f2d1c95934ab3d2c.zip
llvm-4ba9d9c84f4ce05eec341dc5f2d1c95934ab3d2c.tar.gz
llvm-4ba9d9c84f4ce05eec341dc5f2d1c95934ab3d2c.tar.bz2
Use StringRef::contains (NFC)
Diffstat (limited to 'lldb/source/Commands/CommandObjectWatchpoint.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectWatchpoint.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectWatchpoint.cpp b/lldb/source/Commands/CommandObjectWatchpoint.cpp
index d7a446f..9fbf036 100644
--- a/lldb/source/Commands/CommandObjectWatchpoint.cpp
+++ b/lldb/source/Commands/CommandObjectWatchpoint.cpp
@@ -56,7 +56,7 @@ static int32_t WithRSAIndex(llvm::StringRef Arg) {
uint32_t i;
for (i = 0; i < 4; ++i)
- if (Arg.find(RSA[i]) != llvm::StringRef::npos)
+ if (Arg.contains(RSA[i]))
return i;
return -1;
}