diff --git a/llvm/lib/Transforms/Scalar/NewGVN.cpp b/llvm/lib/Transforms/Scalar/NewGVN.cpp index 7ef795fedf0f..0fa7181c489a 100644 --- a/llvm/lib/Transforms/Scalar/NewGVN.cpp +++ b/llvm/lib/Transforms/Scalar/NewGVN.cpp @@ -1045,7 +1045,7 @@ void NewGVN::performCongruenceFinding(Value *V, const Expression *E) { } } markUsersTouched(V); - if (Instruction *I = dyn_cast(V)) + if (auto *I = dyn_cast(V)) if (MemoryAccess *MA = MSSA->getMemoryAccess(I)) markMemoryUsersTouched(MA); }