[llvm-commits] CVS: llvm/tools/bugpoint/TestPasses.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Apr 23 11:39:01 PDT 2003
Changes in directory llvm/tools/bugpoint:
TestPasses.cpp updated: 1.1 -> 1.2
---
Log message:
Remove unnecessary &*
---
Diffs of the changes:
Index: llvm/tools/bugpoint/TestPasses.cpp
diff -u llvm/tools/bugpoint/TestPasses.cpp:1.1 llvm/tools/bugpoint/TestPasses.cpp:1.2
--- llvm/tools/bugpoint/TestPasses.cpp:1.1 Wed Nov 20 16:28:10 2002
+++ llvm/tools/bugpoint/TestPasses.cpp Wed Apr 23 11:38:00 2003
@@ -39,7 +39,7 @@
class DeleteCalls : public BasicBlockPass {
bool runOnBasicBlock(BasicBlock &BB) {
for (BasicBlock::iterator I = BB.begin(), E = BB.end(); I != E; ++I)
- if (CallInst *CI = dyn_cast<CallInst>(&*I)) {
+ if (CallInst *CI = dyn_cast<CallInst>(I)) {
if (!CI->use_empty())
CI->replaceAllUsesWith(Constant::getNullValue(CI->getType()));
CI->getParent()->getInstList().erase(CI);
More information about the llvm-commits
mailing list