]> granicus.if.org Git - llvm/commitdiff
[NewGVN] Prefer auto over explicit type. NFCI.
authorDavide Italiano <davide@freebsd.org>
Sat, 7 Jan 2017 02:05:50 +0000 (02:05 +0000)
committerDavide Italiano <davide@freebsd.org>
Sat, 7 Jan 2017 02:05:50 +0000 (02:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291328 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/NewGVN.cpp

index e5a88cbb00b73950865b5d0c4e5a636162662101..c6099ea5051faf139ef1ee11e50b8055c9a024fc 100644 (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;
     }