[NewGVN] Prefer `auto` to explicit type when the latter is obvious.

llvm-svn: 290499
This commit is contained in:
Davide Italiano 2016-12-24 17:17:21 +00:00
parent 4f84764e32
commit 463c32eaf6
1 changed files with 1 additions and 1 deletions

View File

@ -1045,7 +1045,7 @@ void NewGVN::performCongruenceFinding(Value *V, const Expression *E) {
}
}
markUsersTouched(V);
if (Instruction *I = dyn_cast<Instruction>(V))
if (auto *I = dyn_cast<Instruction>(V))
if (MemoryAccess *MA = MSSA->getMemoryAccess(I))
markMemoryUsersTouched(MA);
}