diff options
-rw-r--r-- | llvm/lib/Transforms/Scalar/NewGVN.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/NewGVN.cpp b/llvm/lib/Transforms/Scalar/NewGVN.cpp index e5a88cbb00b..c6099ea5051 100644 --- a/llvm/lib/Transforms/Scalar/NewGVN.cpp +++ b/llvm/lib/Transforms/Scalar/NewGVN.cpp @@ -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; } |