From e3c335cbed945f5473c7f55e9c70125357d0550a Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Thu, 11 Aug 2016 15:21:21 +0000 Subject: [PATCH] use auto* with dyn_cast ; NFC llvm-svn: 278340 --- llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp index 3b5f92d..6d800a4 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp @@ -2617,8 +2617,7 @@ Instruction *InstCombiner::visitCallSite(CallSite CS) { /// If the callee is a constexpr cast of a function, attempt to move the cast to /// the arguments of the call/invoke. bool InstCombiner::transformConstExprCastCall(CallSite CS) { - Function *Callee = - dyn_cast(CS.getCalledValue()->stripPointerCasts()); + auto *Callee = dyn_cast(CS.getCalledValue()->stripPointerCasts()); if (!Callee) return false; // The prototype of thunks are a lie, don't try to directly call such -- 2.7.4