Skip to content

Commit e7d3a4f

Browse files
[FileCheck] Simplify a use of StringRef::consume_front (NFC)
1 parent ffaedc2 commit e7d3a4f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/FileCheck/FileCheck.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -690,9 +690,7 @@ Expected<std::unique_ptr<Expression>> Pattern::parseNumericSubstitutionBlock(
690690

691691
// Parse matching constraint.
692692
Expr = Expr.ltrim(SpaceChars);
693-
bool HasParsedValidConstraint = false;
694-
if (Expr.consume_front("=="))
695-
HasParsedValidConstraint = true;
693+
bool HasParsedValidConstraint = Expr.consume_front("==");
696694

697695
// Parse the expression itself.
698696
Expr = Expr.ltrim(SpaceChars);

0 commit comments

Comments
 (0)