mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
Remove unnecessary &*
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5873 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e408e25132
commit
6e96a99ce3
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user