projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e408e25
)
Remove unnecessary &*
author
Chris Lattner
<sabre@nondot.org>
Wed, 23 Apr 2003 16:38:00 +0000
(16:38 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 23 Apr 2003 16:38:00 +0000
(16:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5873
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/bugpoint/TestPasses.cpp
patch
|
blob
|
history
diff --git
a/tools/bugpoint/TestPasses.cpp
b/tools/bugpoint/TestPasses.cpp
index 56acdeac731cc492a92f5e511549d5168c162bf6..b284b9d1d9bbadae5c0e31acd5b7055329e9360e 100644
(file)
--- 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);