[PATCH] D52894: Update CallSite docs and add a new function (NFC)

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 4 10:30:40 PDT 2018


sbc100 added inline comments.


================
Comment at: lib/Transforms/InstCombine/InstCombineCalls.cpp:4187
 bool InstCombiner::transformConstExprCastCall(CallSite CS) {
-  auto *Callee = dyn_cast<Function>(CS.getCalledValue()->stripPointerCasts());
+  auto *Callee = CS.getCalledFunctionStripCasts();
   if (!Callee)
----------------
These `auto` s should probably be replaced with actual types now there is no type on the RHS.


Repository:
  rL LLVM

https://reviews.llvm.org/D52894





More information about the llvm-commits mailing list