aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/llvm/lib/FuzzMutate/FuzzerCLI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/llvm/lib/FuzzMutate/FuzzerCLI.cpp')
-rw-r--r--contrib/llvm-project/llvm/lib/FuzzMutate/FuzzerCLI.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/llvm-project/llvm/lib/FuzzMutate/FuzzerCLI.cpp b/contrib/llvm-project/llvm/lib/FuzzMutate/FuzzerCLI.cpp
index 0e47e3cc3af2..c64e9c04e199 100644
--- a/contrib/llvm-project/llvm/lib/FuzzMutate/FuzzerCLI.cpp
+++ b/contrib/llvm-project/llvm/lib/FuzzMutate/FuzzerCLI.cpp
@@ -43,7 +43,7 @@ void llvm::handleExecNameEncodedBEOpts(StringRef ExecName) {
Args.push_back("-global-isel");
// For now we default GlobalISel to -O0
Args.push_back("-O0");
- } else if (Opt.startswith("O")) {
+ } else if (Opt.starts_with("O")) {
Args.push_back("-" + Opt.str());
} else if (Triple(Opt).getArch()) {
Args.push_back("-mtriple=" + Opt.str());
@@ -140,7 +140,7 @@ int llvm::runFuzzerOnInputs(int ArgC, char *ArgV[], FuzzerTestFun TestOne,
for (int I = 1; I < ArgC; ++I) {
StringRef Arg(ArgV[I]);
- if (Arg.startswith("-")) {
+ if (Arg.starts_with("-")) {
if (Arg.equals("-ignore_remaining_args=1"))
break;
continue;