Turn StripPointerCast() into a method
[oota-llvm.git] / lib / Transforms / Scalar / InstructionCombining.cpp
index 66d5326b9f3427fe01a80b56cb803add728820a9..a3340a0d82a329398b8c79460186f3e15bab4170 100644 (file)
@@ -9131,7 +9131,7 @@ Instruction *InstCombiner::transformCallThroughTrampoline(CallSite CS) {
   IntrinsicInst *Tramp =
     cast<IntrinsicInst>(cast<BitCastInst>(Callee)->getOperand(0));
 
-  Function *NestF = cast<Function>(StripPointerCasts(Tramp->getOperand(2)));
+  Function *NestF = cast<Function>(Tramp->getOperand(2)->stripPointerCasts());
   const PointerType *NestFPTy = cast<PointerType>(NestF->getType());
   const FunctionType *NestFTy = cast<FunctionType>(NestFPTy->getElementType());