diff options
author | Chris Lattner <sabre@nondot.org> | 2003-04-23 16:37:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-04-23 16:37:45 +0000 |
commit | e408e25132b8de8c757db1e3ddcd70432dfeb24d (patch) | |
tree | 629c22dc753c0a18f2188a3089f0a8d19fc73464 /lib/Transforms/Instrumentation/ProfilePaths/RetracePath.cpp | |
parent | 2ee82e05e3e41fa23951d3503db5483a36dc3ae3 (diff) |
Remove unnecesary &*'s
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5872 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Instrumentation/ProfilePaths/RetracePath.cpp')
-rw-r--r-- | lib/Transforms/Instrumentation/ProfilePaths/RetracePath.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/Transforms/Instrumentation/ProfilePaths/RetracePath.cpp b/lib/Transforms/Instrumentation/ProfilePaths/RetracePath.cpp index c222bdfb34..805250fd9a 100644 --- a/lib/Transforms/Instrumentation/ProfilePaths/RetracePath.cpp +++ b/lib/Transforms/Instrumentation/ProfilePaths/RetracePath.cpp @@ -140,7 +140,7 @@ void getBBtrace(vector<BasicBlock *> &vBB, int pathNo, Function *M){//, BasicBlock *ExitNode = 0; for (Function::iterator I = M->begin(), E = M->end(); I != E; ++I){ if (isa<ReturnInst>(I->getTerminator())) { - ExitNode = &*I; + ExitNode = I; break; } } @@ -160,7 +160,7 @@ void getBBtrace(vector<BasicBlock *> &vBB, int pathNo, Function *M){//, if(BB->size()==3 || BB->size() ==2){ for(BasicBlock::iterator II = BB->begin(), IE = BB->end(); II != IE; ++II){ - if(CallInst *callInst = dyn_cast<CallInst>(&*II)){ + if(CallInst *callInst = dyn_cast<CallInst>(II)){ //std::cerr<<*callInst; Function *calledFunction = callInst->getCalledFunction(); if(calledFunction && calledFunction->getName() == "trigger"){ @@ -199,7 +199,7 @@ void getBBtrace(vector<BasicBlock *> &vBB, int pathNo, Function *M){//, continue; //if(BB->size()==3) - //if(CallInst *callInst = dyn_cast<CallInst>(&*BB->getInstList().begin())) + //if(CallInst *callInst = dyn_cast<CallInst>(BB->getInstList().begin())) //if(callInst->getCalledFunction()->getName() == "trigger") //continue; @@ -216,20 +216,20 @@ void getBBtrace(vector<BasicBlock *> &vBB, int pathNo, Function *M){//, Node *nd=findBB(nodes, BB); assert(nd && "No node for this edge!"); - for(BasicBlock::succ_iterator s=succ_begin(&*BB), se=succ_end(&*BB); + for(BasicBlock::succ_iterator s=succ_begin(BB), se=succ_end(BB); s!=se; ++s){ if(triggerBBs[*s] == 9){ //if(!pathReg[M]){ //Get the path register for this! //if(BB->size()>8) - // if(LoadInst *ldInst = dyn_cast<LoadInst>(&*BB->getInstList().begin())) + // if(LoadInst *ldInst = dyn_cast<LoadInst>(BB->getInstList().begin())) // pathReg[M] = ldInst->getPointerOperand(); //} continue; } //if((*s)->size()==3) //if(CallInst *callInst = - // dyn_cast<CallInst>(&*(*s)->getInstList().begin())) + // dyn_cast<CallInst>((*s)->getInstList().begin())) // if(callInst->getCalledFunction()->getName() == "trigger") // continue; @@ -284,11 +284,11 @@ void getBBtrace(vector<BasicBlock *> &vBB, int pathNo, Function *M){//, VBI != VBE; ++VBI){ for(BasicBlock::iterator BBI = (*VBI)->begin(), BBE = (*VBI)->end(); BBI != BBE; ++BBI){ - if(LoadInst *ldInst = dyn_cast<LoadInst>(&*BBI)){ + if(LoadInst *ldInst = dyn_cast<LoadInst>(BBI)){ if(pathReg[M] == ldInst->getPointerOperand()) instToErase.push_back(ldInst); } - else if(StoreInst *stInst = dyn_cast<StoreInst>(&*BBI)){ + else if(StoreInst *stInst = dyn_cast<StoreInst>(BBI)){ if(pathReg[M] == stInst->getPointerOperand()) instToErase.push_back(stInst); } |