summaryrefslogtreecommitdiffstats
path: root/tools/bugpoint/TestPasses.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-04-23 16:38:00 +0000
committerChris Lattner <sabre@nondot.org>2003-04-23 16:38:00 +0000
commit6e96a99ce383dc859719cc1b9ddb745ad1ae643e (patch)
tree036a36f3039bb35f497b9254c47106ba0906a593 /tools/bugpoint/TestPasses.cpp
parente408e25132b8de8c757db1e3ddcd70432dfeb24d (diff)
downloadexternal_llvm-6e96a99ce383dc859719cc1b9ddb745ad1ae643e.zip
external_llvm-6e96a99ce383dc859719cc1b9ddb745ad1ae643e.tar.gz
external_llvm-6e96a99ce383dc859719cc1b9ddb745ad1ae643e.tar.bz2
Remove unnecessary &*
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5873 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/TestPasses.cpp')
-rw-r--r--tools/bugpoint/TestPasses.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bugpoint/TestPasses.cpp b/tools/bugpoint/TestPasses.cpp
index 56acdea..b284b9d 100644
--- a/tools/bugpoint/TestPasses.cpp
+++ b/tools/bugpoint/TestPasses.cpp
@@ -39,7 +39,7 @@ namespace {
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);