Fix class SCEVPredicate has virtual functions and accessible non-virtual destructor.
[oota-llvm.git] / include / llvm / Analysis / LoopInfoImpl.h
index dcd9a0f4cbcf2bfd763a235557263994c3d31c44..824fc7e8f1559bf70a76c5827c3065dd95a8894f 100644 (file)
@@ -269,7 +269,7 @@ void LoopBase<BlockT, LoopT>::verifyLoop() const {
       // A non-header loop shouldn't be reachable from outside the loop,
       // though it is permitted if the predecessor is not itself actually
       // reachable.
-      BlockT *EntryBB = BB->getParent()->begin();
+      BlockT *EntryBB = &BB->getParent()->front();
       for (BlockT *CB : depth_first(EntryBB))
         for (unsigned i = 0, e = OutsideLoopPreds.size(); i != e; ++i)
           assert(CB != OutsideLoopPreds[i] &&