Taints the non-acquire RMW's store address with the load part
[oota-llvm.git] / lib / Analysis / IVUsers.cpp
index a1c6b72f9f0ecb7a897a575fc1b4714445719b90..e0c5d8fa5f5a6d8c008892d99c152b39412abed3 100644 (file)
@@ -276,7 +276,7 @@ bool IVUsers::runOnLoop(Loop *l, LPPassManager &LPM) {
   // them by stride.  Start by finding all of the PHI nodes in the header for
   // this loop.  If they are induction variables, inspect their uses.
   for (BasicBlock::iterator I = L->getHeader()->begin(); isa<PHINode>(I); ++I)
-    (void)AddUsersIfInteresting(I);
+    (void)AddUsersIfInteresting(&*I);
 
   return false;
 }