forked from OSchip/llvm-project
Use "unsigned" instead of "int" for i to remove a "comparison between unsigned and signed" warning (potential integer overflow).
llvm-svn: 57201
This commit is contained in:
parent
ca2271af10
commit
7c2d69f007
|
@ -564,7 +564,7 @@ void Sema::AddCXXDirectInitializerToDecl(DeclTy *Dcl, SourceLocation LParenLoc,
|
|||
// If there is no declaration, there was an error parsing it. Just ignore
|
||||
// the initializer.
|
||||
if (RealDecl == 0) {
|
||||
for (int i=0; i != NumExprs; ++i)
|
||||
for (unsigned i = 0; i != NumExprs; ++i)
|
||||
delete static_cast<Expr *>(ExprTys[i]);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue