CodeGen: Remove a few more ilist iterator implicit conversions, NFC
[oota-llvm.git] / lib / CodeGen / GCRootLowering.cpp
index 437945aa3d25c688567928e56c16ddf53165f467..484d31737b2e4150ac198f8c3576ee84f505e91e 100644 (file)
@@ -158,7 +158,7 @@ static bool InsertRootInitializers(Function &F, AllocaInst **Roots,
 
   // Search for initializers in the initial BB.
   SmallPtrSet<AllocaInst *, 16> InitedRoots;
-  for (; !CouldBecomeSafePoint(IP); ++IP)
+  for (; !CouldBecomeSafePoint(&*IP); ++IP)
     if (StoreInst *SI = dyn_cast<StoreInst>(IP))
       if (AllocaInst *AI =
               dyn_cast<AllocaInst>(SI->getOperand(1)->stripPointerCasts()))