diff --git a/clang/test/Index/recursive-cxx-member-calls.cpp b/clang/test/Index/recursive-cxx-member-calls.cpp index 48fc8f14544c4..be908c506e747 100644 --- a/clang/test/Index/recursive-cxx-member-calls.cpp +++ b/clang/test/Index/recursive-cxx-member-calls.cpp @@ -99,7 +99,7 @@ using namespace clang; AttributeList::Kind AttributeList::getKind(const IdentifierInfo * Name) { llvm::StringRef AttrName = Name->getName(); - if (AttrName.starts_with("__") && AttrName.ends_with("__")) + if (AttrName.startswith("__") && AttrName.endswith("__")) AttrName = AttrName.substr(2, AttrName.size() - 4); return llvm::StringSwitch < AttributeList::Kind > (AttrName)