getBasicBlocks() is not needed anymore for reading Method data
authorChris Lattner <sabre@nondot.org>
Wed, 27 Jun 2001 23:30:11 +0000 (23:30 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 27 Jun 2001 23:30:11 +0000 (23:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/IntervalIterator.h

index 60155022aa4f4de8026b6687b172f4a0bf8e1f5f..e3c2d08de89ad7cd2ae7d079efbc19d323c6cf68 100644 (file)
@@ -94,7 +94,7 @@ public:
   IntervalIterator() {} // End iterator, empty stack
   IntervalIterator(Method *M, bool OwnMemory) : IOwnMem(OwnMemory) {
     OrigContainer = M;
-    if (!ProcessInterval(M->getBasicBlocks().front())) {
+    if (!ProcessInterval(M->front())) {
       assert(0 && "ProcessInterval should never fail for first interval!");
     }
   }