aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/FileCheck/FileCheckTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/FileCheck/FileCheckTest.cpp')
-rw-r--r--llvm/unittests/FileCheck/FileCheckTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/FileCheck/FileCheckTest.cpp b/llvm/unittests/FileCheck/FileCheckTest.cpp
index 317fc449..91fce69 100644
--- a/llvm/unittests/FileCheck/FileCheckTest.cpp
+++ b/llvm/unittests/FileCheck/FileCheckTest.cpp
@@ -172,7 +172,7 @@ struct ExpressionFormatParameterisedFixture
}
std::string padWithLeadingZeros(StringRef NumStr) const {
- bool Negative = NumStr.startswith("-");
+ bool Negative = NumStr.starts_with("-");
if (NumStr.size() - unsigned(Negative) >= Precision)
return NumStr.str();