From: Benjamin Kramer Date: Wed, 1 Jun 2011 08:57:04 +0000 (+0000) Subject: Remove pointless assert, N is unsigned. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e1ff2b6c9bdffd1cc202a2c9a38393d78f4bca5;p=clang Remove pointless assert, N is unsigned. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132392 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Tooling/ASTMatchers.h b/include/clang/Tooling/ASTMatchers.h index abf88b1a03..7c510e6584 100644 --- a/include/clang/Tooling/ASTMatchers.h +++ b/include/clang/Tooling/ASTMatchers.h @@ -1435,7 +1435,6 @@ AST_POLYMORPHIC_MATCHER_P(HasAnyArgument, Matcher, InnerMatcher) { /// matching int x AST_MATCHER_P2(clang::FunctionDecl, HasParameter, unsigned, N, Matcher, InnerMatcher) { - assert(N >= 0); return (N < Node.getNumParams() && InnerMatcher.Matches( *Node.getParamDecl(N), Finder, Builder));