summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Analysis/IntervalIterator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Analysis/IntervalIterator.h b/include/llvm/Analysis/IntervalIterator.h
index 60155022aa..e3c2d08de8 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!");
}
}