X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FAnalysis%2FIntervalIterator.h;h=0968c7468e68b902697152b9780a33f2c9138d2f;hb=b09c146b116359616f6cbd4c8b3328607e00ff42;hp=f0130efd6d01c83f1714203e39d515dafb6fc991;hpb=a0994b1a13ef3437f5442b9fec1750b150da175a;p=oota-llvm.git diff --git a/include/llvm/Analysis/IntervalIterator.h b/include/llvm/Analysis/IntervalIterator.h index f0130efd6d0..0968c7468e6 100644 --- a/include/llvm/Analysis/IntervalIterator.h +++ b/include/llvm/Analysis/IntervalIterator.h @@ -33,12 +33,12 @@ #ifndef LLVM_INTERVAL_ITERATOR_H #define LLVM_INTERVAL_ITERATOR_H -#include "llvm/ADT/SmallVector.h" #include "llvm/Analysis/IntervalPartition.h" #include "llvm/Function.h" #include "llvm/Support/CFG.h" -#include #include +#include +#include namespace llvm { @@ -88,7 +88,7 @@ inline void addNodeToInterval(Interval *Int, Interval *I) { template, class IGT = GraphTraits > > class IntervalIterator { - SmallVector, 16> IntStack; + std::vector > IntStack; std::set Visited; OrigContainer_t *OrigContainer; bool IOwnMem; // If True, delete intervals when done with them @@ -101,14 +101,14 @@ public: IntervalIterator(Function *M, bool OwnMemory) : IOwnMem(OwnMemory) { OrigContainer = M; if (!ProcessInterval(&M->front())) { - assert(0 && "ProcessInterval should never fail for first interval!"); + llvm_unreachable("ProcessInterval should never fail for first interval!"); } } IntervalIterator(IntervalPartition &IP, bool OwnMemory) : IOwnMem(OwnMemory) { OrigContainer = &IP; if (!ProcessInterval(IP.getRootInterval())) { - assert(0 && "ProcessInterval should never fail for first interval!"); + llvm_unreachable("ProcessInterval should never fail for first interval!"); } }