llvm.org GIT mirror llvm / 6e96a99
Remove unnecessary &* git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5873 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 17 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
3838 class DeleteCalls : public BasicBlockPass {
3939 bool runOnBasicBlock(BasicBlock &BB) {
4040 for (BasicBlock::iterator I = BB.begin(), E = BB.end(); I != E; ++I)
41 if (CallInst *CI = dyn_cast(&*I)) {
41 if (CallInst *CI = dyn_cast(I)) {
4242 if (!CI->use_empty())
4343 CI->replaceAllUsesWith(Constant::getNullValue(CI->getType()));
4444 CI->getParent()->getInstList().erase(CI);