diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-05-07 22:54:15 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-05-07 22:54:15 +0000 |
commit | fc2edad4ae6d4e69732b2d400e299d5598ba3e9d (patch) | |
tree | 45f5641a5613c6a15b77951bde29ece48b093fb1 /llvm/lib/Transforms | |
parent | ac25fc6f2ee4463fff096ddacd98c474f148166f (diff) | |
download | bcm5719-llvm-fc2edad4ae6d4e69732b2d400e299d5598ba3e9d.tar.gz bcm5719-llvm-fc2edad4ae6d4e69732b2d400e299d5598ba3e9d.zip |
Turn StripPointerCast() into a method
llvm-svn: 50836
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index 66d5326b9f3..a3340a0d82a 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -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()); |