Searched refs:OldCall (Results 1 – 3 of 3) sorted by relevance
917 Instruction *OldCall = CS.getInstruction(); in visitCallSite() local920 OldCall); in visitCallSite()923 if (!OldCall->getType()->isVoidTy()) in visitCallSite()924 ReplaceInstUsesWith(*OldCall, UndefValue::get(OldCall->getType())); in visitCallSite()925 if (isa<CallInst>(OldCall)) in visitCallSite()926 return EraseInstFromFunction(*OldCall); in visitCallSite()930 cast<InvokeInst>(OldCall)->setCalledFunction( in visitCallSite()
2534 Instruction *OldCall = CS.getInstruction(); in visitCallSite() local2537 OldCall); in visitCallSite()2540 if (!OldCall->getType()->isVoidTy()) in visitCallSite()2541 replaceInstUsesWith(*OldCall, UndefValue::get(OldCall->getType())); in visitCallSite()2542 if (isa<CallInst>(OldCall)) in visitCallSite()2543 return eraseInstFromFunction(*OldCall); in visitCallSite()2547 cast<InvokeInst>(OldCall)->setCalledFunction( in visitCallSite()
4032 Instruction *OldCall = CS.getInstruction(); in visitCallSite() local4035 OldCall); in visitCallSite()4038 if (!OldCall->getType()->isVoidTy()) in visitCallSite()4039 replaceInstUsesWith(*OldCall, UndefValue::get(OldCall->getType())); in visitCallSite()4040 if (isa<CallInst>(OldCall)) in visitCallSite()4041 return eraseInstFromFunction(*OldCall); in visitCallSite()4045 cast<InvokeInst>(OldCall)->setCalledFunction( in visitCallSite()