OSDN Git Service

Clear the intervals list in "destroy", patch by
authorChris Lattner <sabre@nondot.org>
Thu, 28 Aug 2008 03:33:03 +0000 (03:33 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 28 Aug 2008 03:33:03 +0000 (03:33 +0000)
Prakash Prabhu!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55458 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/IntervalPartition.cpp

index 2d5f1cd..7280f8f 100644 (file)
@@ -28,6 +28,7 @@ void IntervalPartition::destroy() {
   for (unsigned i = 0, e = Intervals.size(); i != e; ++i)
     delete Intervals[i];
   IntervalMap.clear();
+  Intervals.clear();
   RootInterval = 0;
 }