diff --git a/include/llvm/Analysis/IntervalIterator.h b/include/llvm/Analysis/IntervalIterator.h index 60155022aa4..e3c2d08de89 100644 --- a/include/llvm/Analysis/IntervalIterator.h +++ b/include/llvm/Analysis/IntervalIterator.h @@ -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!"); } }