[C++11,ARM64] Range based for loops TLS cleanup.

No functional change intended.

llvm-svn: 205439
This commit is contained in:
Jim Grosbach 2014-04-02 18:00:41 +00:00
parent 0d0c5a614a
commit 2539c3d07a
1 changed files with 2 additions and 3 deletions

View File

@ -80,9 +80,8 @@ struct LDTLSCleanup : public MachineFunctionPass {
}
// Visit the children of this block in the dominator tree.
for (MachineDomTreeNode::iterator I = Node->begin(), E = Node->end();
I != E; ++I) {
Changed |= VisitNode(*I, TLSBaseAddrReg);
for (auto N : *Node) {
Changed |= VisitNode(N, TLSBaseAddrReg);
}
return Changed;