From: Sanjay Patel Date: Thu, 11 Aug 2016 15:21:21 +0000 (+0000) Subject: use auto* with dyn_cast ; NFC X-Git-Tag: llvmorg-4.0.0-rc1~12755 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e3c335cbed945f5473c7f55e9c70125357d0550a;p=platform%2Fupstream%2Fllvm.git use auto* with dyn_cast ; NFC llvm-svn: 278340 --- 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