From b1f8aebc670769a19d54c9c4a8f3085f2bf52f1c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 29 Sep 2002 21:43:04 +0000 Subject: [PATCH] Fix printing of loop information git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3977 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/LoopInfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Analysis/LoopInfo.cpp b/lib/Analysis/LoopInfo.cpp index 479cbf43d17..1c3d5ee5658 100644 --- a/lib/Analysis/LoopInfo.cpp +++ b/lib/Analysis/LoopInfo.cpp @@ -33,8 +33,8 @@ void Loop::print(std::ostream &OS) const { } OS << "\n"; - std::copy(getSubLoops().begin(), getSubLoops().end(), - std::ostream_iterator(OS, "\n")); + for (unsigned i = 0, e = getSubLoops().size(); i != e; ++i) + getSubLoops()[i]->print(OS); } //===----------------------------------------------------------------------===//