forked from OSchip/llvm-project
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:
parent
f8d556881e
commit
7d71db77d2
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue