Haven't thought that I ever needed to do this, but in this case comparing the
index using pointer arithmetic turns out to be really ugly. It also generates
nasty sign-compare warnings on 32 bit targets.
llvm-svn: 214705
if (ThisED >= UpperBound)
return false;
- for (const auto &Param : Params) {
- if (&Param - Params.begin() == ArgIndex)
+ for (unsigned I = 0, E = Params.size(); I != E; ++I) {
+ if (I == ArgIndex)
continue;
- IdentifierInfo *II = Param->getIdentifier();
+ IdentifierInfo *II = Params[I]->getIdentifier();
if (!II)
continue;