[cfe-commits] r132392 - /cfe/trunk/include/clang/Tooling/ASTMatchers.h
Benjamin Kramer
benny.kra at googlemail.com
Wed Jun 1 01:57:04 PDT 2011
Author: d0k
Date: Wed Jun 1 03:57:04 2011
New Revision: 132392
URL: http://llvm.org/viewvc/llvm-project?rev=132392&view=rev
Log:
Remove pointless assert, N is unsigned.
Modified:
cfe/trunk/include/clang/Tooling/ASTMatchers.h
Modified: cfe/trunk/include/clang/Tooling/ASTMatchers.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Tooling/ASTMatchers.h?rev=132392&r1=132391&r2=132392&view=diff
==============================================================================
--- cfe/trunk/include/clang/Tooling/ASTMatchers.h (original)
+++ cfe/trunk/include/clang/Tooling/ASTMatchers.h Wed Jun 1 03:57:04 2011
@@ -1435,7 +1435,6 @@
/// matching int x
AST_MATCHER_P2(clang::FunctionDecl, HasParameter,
unsigned, N, Matcher<clang::ParmVarDecl>, InnerMatcher) {
- assert(N >= 0);
return (N < Node.getNumParams() &&
InnerMatcher.Matches(
*Node.getParamDecl(N), Finder, Builder));
More information about the cfe-commits
mailing list