R600/SI: Add InstrMapping for noret atomics.
[oota-llvm.git] / lib / CodeGen / SjLjEHPrepare.cpp
index 3a6c6485b3a830b1e5e2c813bd9f0956872779e5..396fa5239da5beaa1590a9c50bda81d7fdcd001d 100644 (file)
@@ -351,10 +351,8 @@ void SjLjEHPrepare::lowerAcrossUnwindEdges(Function &F,
       continue;
 
     // Demote the PHIs to the stack.
-    for (SmallPtrSet<PHINode *, 8>::iterator I = PHIsToDemote.begin(),
-                                             E = PHIsToDemote.end();
-         I != E; ++I)
-      DemotePHIToStack(*I);
+    for (PHINode *PN : PHIsToDemote)
+      DemotePHIToStack(PN);
 
     // Move the landingpad instruction back to the top of the landing pad block.
     LPI->moveBefore(UnwindBlock->begin());