Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit d19cbfe

Browse files
committed
TargetParser.cpp: Fixup -- StringRef::startswith() is better here. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253570 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 31b8ab0 commit d19cbfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Support/TargetParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ StringRef llvm::ARM::getArchExtName(unsigned ArchExtKind) {
331331
}
332332

333333
const char *llvm::ARM::getArchExtFeature(StringRef ArchExt) {
334-
if (ArchExt.substr(0, 2) == "no") {
334+
if (ArchExt.startswith("no")) {
335335
StringRef ArchExtBase(ArchExt.substr(2));
336336
for (const auto AE : ARCHExtNames) {
337337
if (AE.NegFeature && ArchExtBase == AE.getName())

0 commit comments

Comments
 (0)