[llvm] r259802 - use 'auto' for iterators; NFCI
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 4 09:00:35 PST 2016
Author: spatel
Date: Thu Feb 4 11:00:35 2016
New Revision: 259802
URL: http://llvm.org/viewvc/llvm-project?rev=259802&view=rev
Log:
use 'auto' for iterators; NFCI
Modified:
llvm/trunk/include/llvm/Analysis/AliasAnalysis.h
Modified: llvm/trunk/include/llvm/Analysis/AliasAnalysis.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/AliasAnalysis.h?rev=259802&r1=259801&r2=259802&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/AliasAnalysis.h (original)
+++ llvm/trunk/include/llvm/Analysis/AliasAnalysis.h Thu Feb 4 11:00:35 2016
@@ -823,9 +823,7 @@ ModRefInfo AAResultBase<DerivedT>::getMo
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<DerivedT>::getMo
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<DerivedT>::getMo
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;
More information about the llvm-commits
mailing list