diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-05-06 22:52:30 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-05-06 22:52:30 +0000 |
commit | 82c02b28f3a1a3adef1638e801999952a2e47f1b (patch) | |
tree | e6892060704d4f123712bf8efc02824f7591f08e /llvm/lib/Transforms/Scalar/InstructionCombining.cpp | |
parent | ac81a5aad54e2d0c95a4fa436765006b671283dd (diff) | |
download | bcm5719-llvm-82c02b28f3a1a3adef1638e801999952a2e47f1b.tar.gz bcm5719-llvm-82c02b28f3a1a3adef1638e801999952a2e47f1b.zip |
Make StripPointerCast a common function (should we mak it method of Value instead?)
llvm-svn: 50775
Diffstat (limited to 'llvm/lib/Transforms/Scalar/InstructionCombining.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index de29efa497d..2afa6c51622 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -9131,8 +9131,7 @@ Instruction *InstCombiner::transformCallThroughTrampoline(CallSite CS) { IntrinsicInst *Tramp = cast<IntrinsicInst>(cast<BitCastInst>(Callee)->getOperand(0)); - Function *NestF = - cast<Function>(IntrinsicInst::StripPointerCasts(Tramp->getOperand(2))); + Function *NestF = cast<Function>(StripPointerCasts(Tramp->getOperand(2))); const PointerType *NestFPTy = cast<PointerType>(NestF->getType()); const FunctionType *NestFTy = cast<FunctionType>(NestFPTy->getElementType()); |