diff --git a/clang-tools-extra/pseudo/lib/cxx/CXX.cpp b/clang-tools-extra/pseudo/lib/cxx/CXX.cpp index d6c056a25e36..4b78a67e0be0 100644 --- a/clang-tools-extra/pseudo/lib/cxx/CXX.cpp +++ b/clang-tools-extra/pseudo/lib/cxx/CXX.cpp @@ -124,7 +124,7 @@ Token::Index recoverBrackets(Token::Index Begin, const TokenStream &Tokens) { assert(Left.Kind == tok::l_brace || Left.Kind == tok::l_paren || Left.Kind == tok::l_square); if (const Token *Right = Left.pair()) { - assert(Tokens.index(*Right) > Begin); + assert(Tokens.index(*Right) > Begin - 1); return Tokens.index(*Right); } return Token::Invalid;