mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
use 'auto' for iterators; NFCI
llvm-svn: 259802
This commit is contained in:
parent
22ab3adc5c
commit
6eada0c9c7
@ -823,9 +823,7 @@ ModRefInfo AAResultBase<DerivedT>::getModRefInfo(ImmutableCallSite CS,
|
|||||||
bool DoesAlias = false;
|
bool DoesAlias = false;
|
||||||
ModRefInfo AllArgsMask = MRI_NoModRef;
|
ModRefInfo AllArgsMask = MRI_NoModRef;
|
||||||
if (AAResults::doesAccessArgPointees(MRB)) {
|
if (AAResults::doesAccessArgPointees(MRB)) {
|
||||||
for (ImmutableCallSite::arg_iterator AI = CS.arg_begin(),
|
for (auto AI = CS.arg_begin(), AE = CS.arg_end(); AI != AE; ++AI) {
|
||||||
AE = CS.arg_end();
|
|
||||||
AI != AE; ++AI) {
|
|
||||||
const Value *Arg = *AI;
|
const Value *Arg = *AI;
|
||||||
if (!Arg->getType()->isPointerTy())
|
if (!Arg->getType()->isPointerTy())
|
||||||
continue;
|
continue;
|
||||||
@ -887,9 +885,7 @@ ModRefInfo AAResultBase<DerivedT>::getModRefInfo(ImmutableCallSite CS1,
|
|||||||
if (AAResults::onlyAccessesArgPointees(CS2B)) {
|
if (AAResults::onlyAccessesArgPointees(CS2B)) {
|
||||||
ModRefInfo R = MRI_NoModRef;
|
ModRefInfo R = MRI_NoModRef;
|
||||||
if (AAResults::doesAccessArgPointees(CS2B)) {
|
if (AAResults::doesAccessArgPointees(CS2B)) {
|
||||||
for (ImmutableCallSite::arg_iterator I = CS2.arg_begin(),
|
for (auto I = CS2.arg_begin(), E = CS2.arg_end(); I != E; ++I) {
|
||||||
E = CS2.arg_end();
|
|
||||||
I != E; ++I) {
|
|
||||||
const Value *Arg = *I;
|
const Value *Arg = *I;
|
||||||
if (!Arg->getType()->isPointerTy())
|
if (!Arg->getType()->isPointerTy())
|
||||||
continue;
|
continue;
|
||||||
@ -921,9 +917,7 @@ ModRefInfo AAResultBase<DerivedT>::getModRefInfo(ImmutableCallSite CS1,
|
|||||||
if (AAResults::onlyAccessesArgPointees(CS1B)) {
|
if (AAResults::onlyAccessesArgPointees(CS1B)) {
|
||||||
ModRefInfo R = MRI_NoModRef;
|
ModRefInfo R = MRI_NoModRef;
|
||||||
if (AAResults::doesAccessArgPointees(CS1B)) {
|
if (AAResults::doesAccessArgPointees(CS1B)) {
|
||||||
for (ImmutableCallSite::arg_iterator I = CS1.arg_begin(),
|
for (auto I = CS1.arg_begin(), E = CS1.arg_end(); I != E; ++I) {
|
||||||
E = CS1.arg_end();
|
|
||||||
I != E; ++I) {
|
|
||||||
const Value *Arg = *I;
|
const Value *Arg = *I;
|
||||||
if (!Arg->getType()->isPointerTy())
|
if (!Arg->getType()->isPointerTy())
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user