diff options
author | Chris Lattner <sabre@nondot.org> | 2002-09-29 21:43:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-09-29 21:43:04 +0000 |
commit | b1f8aebc670769a19d54c9c4a8f3085f2bf52f1c (patch) | |
tree | 51ee5fa66d8bd5f3d9d5c3a2496c30b3e88a95ba /lib/Analysis/LoopInfo.cpp | |
parent | 4d7a75a9e31a1b45e68b9cd3f50f18bd90dd0850 (diff) |
Fix printing of loop information
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3977 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LoopInfo.cpp')
-rw-r--r-- | lib/Analysis/LoopInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/LoopInfo.cpp b/lib/Analysis/LoopInfo.cpp index 479cbf43d1..1c3d5ee565 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<const Loop*>(OS, "\n")); + for (unsigned i = 0, e = getSubLoops().size(); i != e; ++i) + getSubLoops()[i]->print(OS); } //===----------------------------------------------------------------------===// |