From 463c32eaf6d137f7b42f1189e8ce747ea35da2ae Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Sat, 24 Dec 2016 17:17:21 +0000 Subject: [PATCH] [NewGVN] Prefer `auto` to explicit type when the latter is obvious. llvm-svn: 290499 --- llvm/lib/Transforms/Scalar/NewGVN.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }