Fix printing of loop information

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3977 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-09-29 21:43:04 +00:00
parent 4d7a75a9e3
commit b1f8aebc67

View File

@ -33,8 +33,8 @@ void Loop::print(std::ostream &OS) const {
} }
OS << "\n"; OS << "\n";
std::copy(getSubLoops().begin(), getSubLoops().end(), for (unsigned i = 0, e = getSubLoops().size(); i != e; ++i)
std::ostream_iterator<const Loop*>(OS, "\n")); getSubLoops()[i]->print(OS);
} }
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//