From: Sanjay Patel Date: Thu, 4 Feb 2016 17:00:35 +0000 (+0000) Subject: use 'auto' for iterators; NFCI X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5f4cc6fbd971c7a482c75367b827ee0a7bda569c;p=platform%2Fupstream%2Fllvm.git use 'auto' for iterators; NFCI llvm-svn: 259802 --- diff --git a/llvm/include/llvm/Analysis/AliasAnalysis.h b/llvm/include/llvm/Analysis/AliasAnalysis.h index 3255a9b..e2ca0ab 100644 --- a/llvm/include/llvm/Analysis/AliasAnalysis.h +++ b/llvm/include/llvm/Analysis/AliasAnalysis.h @@ -823,9 +823,7 @@ ModRefInfo AAResultBase::getModRefInfo(ImmutableCallSite CS, bool DoesAlias = false; ModRefInfo AllArgsMask = MRI_NoModRef; if (AAResults::doesAccessArgPointees(MRB)) { - for (ImmutableCallSite::arg_iterator AI = CS.arg_begin(), - AE = CS.arg_end(); - AI != AE; ++AI) { + for (auto AI = CS.arg_begin(), AE = CS.arg_end(); AI != AE; ++AI) { const Value *Arg = *AI; if (!Arg->getType()->isPointerTy()) continue; @@ -887,9 +885,7 @@ ModRefInfo AAResultBase::getModRefInfo(ImmutableCallSite CS1, if (AAResults::onlyAccessesArgPointees(CS2B)) { ModRefInfo R = MRI_NoModRef; if (AAResults::doesAccessArgPointees(CS2B)) { - for (ImmutableCallSite::arg_iterator I = CS2.arg_begin(), - E = CS2.arg_end(); - I != E; ++I) { + for (auto I = CS2.arg_begin(), E = CS2.arg_end(); I != E; ++I) { const Value *Arg = *I; if (!Arg->getType()->isPointerTy()) continue; @@ -921,9 +917,7 @@ ModRefInfo AAResultBase::getModRefInfo(ImmutableCallSite CS1, if (AAResults::onlyAccessesArgPointees(CS1B)) { ModRefInfo R = MRI_NoModRef; if (AAResults::doesAccessArgPointees(CS1B)) { - for (ImmutableCallSite::arg_iterator I = CS1.arg_begin(), - E = CS1.arg_end(); - I != E; ++I) { + for (auto I = CS1.arg_begin(), E = CS1.arg_end(); I != E; ++I) { const Value *Arg = *I; if (!Arg->getType()->isPointerTy()) continue;