diff --git a/llvm/lib/FileCheck/FileCheck.cpp b/llvm/lib/FileCheck/FileCheck.cpp index 221fcffa5e8c7..6d3a2b9cf46f7 100644 --- a/llvm/lib/FileCheck/FileCheck.cpp +++ b/llvm/lib/FileCheck/FileCheck.cpp @@ -690,9 +690,7 @@ Expected> Pattern::parseNumericSubstitutionBlock( // Parse matching constraint. Expr = Expr.ltrim(SpaceChars); - bool HasParsedValidConstraint = false; - if (Expr.consume_front("==")) - HasParsedValidConstraint = true; + bool HasParsedValidConstraint = Expr.consume_front("=="); // Parse the expression itself. Expr = Expr.ltrim(SpaceChars);