[llvm] r278340 - use auto* with dyn_cast ; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 11 08:21:22 PDT 2016
Author: spatel
Date: Thu Aug 11 10:21:21 2016
New Revision: 278340
URL: http://llvm.org/viewvc/llvm-project?rev=278340&view=rev
Log:
use auto* with dyn_cast ; NFC
Modified:
llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp
Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp?rev=278340&r1=278339&r2=278340&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp Thu Aug 11 10:21:21 2016
@@ -2617,8 +2617,7 @@ Instruction *InstCombiner::visitCallSite
/// 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
More information about the llvm-commits
mailing list