use auto* with dyn_cast ; NFC
authorSanjay Patel <spatel@rotateright.com>
Thu, 11 Aug 2016 15:21:21 +0000 (15:21 +0000)
committerSanjay Patel <spatel@rotateright.com>
Thu, 11 Aug 2016 15:21:21 +0000 (15:21 +0000)
llvm-svn: 278340

llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp

index 3b5f92d..6d800a4 100644 (file)
@@ -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<Function>(CS.getCalledValue()->stripPointerCasts());
+  auto *Callee = dyn_cast<Function>(CS.getCalledValue()->stripPointerCasts());
   if (!Callee)
     return false;
   // The prototype of thunks are a lie, don't try to directly call such