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 | 48fc88fa541d9084daf3ade6e4df2046ad9736e2 (patch) | |
tree | 5c4aa1539ace252ca8f271594cf67c82ceff4dac /lib/Transforms/Scalar | |
parent | be46ae1bb4c0236202351795fcb54ef7a9e4529b (diff) | |
download | external_llvm-48fc88fa541d9084daf3ade6e4df2046ad9736e2.zip external_llvm-48fc88fa541d9084daf3ade6e4df2046ad9736e2.tar.gz external_llvm-48fc88fa541d9084daf3ade6e4df2046ad9736e2.tar.bz2 |
Turn StripPointerCast() into a method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50836 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar')
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 66d5326..a3340a0 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/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()); |