From 17a5a1ea38065da7774d109bce358b7e7dbe8964 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 3 Feb 2002 06:27:39 +0000 Subject: [PATCH] Remove extraneous #include git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1632 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/BasicBlock.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/llvm/BasicBlock.h b/include/llvm/BasicBlock.h index 6770aa38aef..b846a8478da 100644 --- a/include/llvm/BasicBlock.h +++ b/include/llvm/BasicBlock.h @@ -22,7 +22,6 @@ #ifndef LLVM_BASICBLOCK_H #define LLVM_BASICBLOCK_H -#include "llvm/Value.h" #include "llvm/ValueHolder.h" #include "llvm/InstrTypes.h" #include "Support/GraphTraits.h" @@ -181,11 +180,13 @@ public: inline bool operator!=(const _Self& x) const { return !operator==(x); } inline pointer operator*() const { + assert(It != BB->use_end() && "pred_iterator out of range!"); return cast(*It)->getParent(); } inline pointer *operator->() const { return &(operator*()); } inline _Self& operator++() { // Preincrement + assert(It != BB->use_end() && "pred_iterator out of range!"); ++It; advancePastConstants(); return *this; } -- 2.34.1