summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SjLjEHPrepare.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-08-24 23:23:06 +0000
committerCraig Topper <craig.topper@gmail.com>2014-08-24 23:23:06 +0000
commit4627679cece264a966faa82a7c5bb79f273d5b6e (patch)
tree227f40fbf1eb4d5208e75d3eb98ba20e829feaa6 /llvm/lib/CodeGen/SjLjEHPrepare.cpp
parent085fc4d6c679055fc603650e7d29579b262e11a8 (diff)
downloadbcm5719-llvm-4627679cece264a966faa82a7c5bb79f273d5b6e.tar.gz
bcm5719-llvm-4627679cece264a966faa82a7c5bb79f273d5b6e.zip
Use range based for loops to avoid needing to re-mention SmallPtrSet size.
llvm-svn: 216351
Diffstat (limited to 'llvm/lib/CodeGen/SjLjEHPrepare.cpp')
-rw-r--r--llvm/lib/CodeGen/SjLjEHPrepare.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SjLjEHPrepare.cpp b/llvm/lib/CodeGen/SjLjEHPrepare.cpp
index 3a6c6485b3a..396fa5239da 100644
--- a/llvm/lib/CodeGen/SjLjEHPrepare.cpp
+++ b/llvm/lib/CodeGen/SjLjEHPrepare.cpp
@@ -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());
OpenPOWER on IntegriCloud