diff options
Diffstat (limited to 'lib/Transforms/Instrumentation/ProfilePaths/InstLoops.cpp')
-rw-r--r-- | lib/Transforms/Instrumentation/ProfilePaths/InstLoops.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Instrumentation/ProfilePaths/InstLoops.cpp b/lib/Transforms/Instrumentation/ProfilePaths/InstLoops.cpp index c876238a1e..64075c8024 100644 --- a/lib/Transforms/Instrumentation/ProfilePaths/InstLoops.cpp +++ b/lib/Transforms/Instrumentation/ProfilePaths/InstLoops.cpp @@ -133,7 +133,7 @@ void getBackEdgesVisit(BasicBlock *u, for(BasicBlock::iterator BB2Inst = BB->begin(), BBend = BB->end(); BB2Inst != BBend; ++BB2Inst){ - if(PHINode *phiInst=dyn_cast<PHINode>(&*BB2Inst)){ + if (PHINode *phiInst = dyn_cast<PHINode>(BB2Inst)){ int bbIndex = phiInst->getBasicBlockIndex(u); if(bbIndex>=0){ phiInst->setIncomingBlock(bbIndex, newBB); |