From 4ba9d9c84f4ce05eec341dc5f2d1c95934ab3d2c Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 23 Oct 2021 20:41:46 -0700 Subject: Use StringRef::contains (NFC) --- lldb/source/Commands/CommandObjectWatchpoint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Commands/CommandObjectWatchpoint.cpp') 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; } -- cgit v1.1