Fix bug in attribute(nonnull) processing where not all of the parameter indices in nonnull(...) were actually processed.

llvm-svn: 60546
This commit is contained in:
Ted Kremenek 2008-12-04 19:38:33 +00:00
parent f8d556881e
commit 7d71db77d2
1 changed files with 1 additions and 1 deletions

View File

@ -313,7 +313,7 @@ static void HandleNonNullAttr(Decl *d, const AttributeList &Attr, Sema &S) {
// The argument must be an integer constant expression.
Expr *Ex = static_cast<Expr *>(Attr.getArg(0));
Expr *Ex = static_cast<Expr *>(*I);
llvm::APSInt ArgNum(32);
if (!Ex->isIntegerConstantExpr(ArgNum, S.Context)) {
S.Diag(Attr.getLoc(), diag::err_attribute_argument_not_int)