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 committed 2002-09-29 21:43:04 +00:00
1 parent 4d7a75a9e3
commit b1f8aebc67
1 file changed
+2 -2
+2 -2
View File
@@ -33,8 +33,8 @@ void Loop::print(std::ostream &OS) const {
}
OS << "\n";
std::copy(getSubLoops().begin(), getSubLoops().end(),
std::ostream_iterator<const Loop*>(OS, "\n"));
for (unsigned i = 0, e = getSubLoops().size(); i != e; ++i)
getSubLoops()[i]->print(OS);
}
//===----------------------------------------------------------------------===//