[NewGVN] Prefer auto over explicit type. NFCI.

llvm-svn: 291328
This commit is contained in:
Davide Italiano 2017-01-07 02:05:50 +00:00
parent 0e2ceb8121
commit 1b97fc34a4
1 changed files with 1 additions and 1 deletions

View File

@ -849,7 +849,7 @@ const Expression *NewGVN::performSymbolicPHIEvaluation(Instruction *I,
// common value unless it dominates the phi block.
if (HasUndef) {
// Only have to check for instructions
if (Instruction *AllSameInst = dyn_cast<Instruction>(AllSameValue))
if (auto *AllSameInst = dyn_cast<Instruction>(AllSameValue))
if (!DT->dominates(AllSameInst, I))
return E;
}