From fcd8e9549555b701e85ba637d32fac6ba3404c89 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 3 Jun 2002 22:10:48 +0000 Subject: [PATCH] Allow const bb's to be checked for containment in a loop llvm-svn: 2754 --- include/llvm/Analysis/LoopInfo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/Analysis/LoopInfo.h b/include/llvm/Analysis/LoopInfo.h index bb9058c256e..16605e5a527 100644 --- a/include/llvm/Analysis/LoopInfo.h +++ b/include/llvm/Analysis/LoopInfo.h @@ -34,7 +34,7 @@ public: inline BasicBlock *getHeader() const { return Blocks.front(); } // contains - Return true of the specified basic block is in this loop - bool contains(BasicBlock *BB) const; + bool contains(const BasicBlock *BB) const; // getSubLoops - Return the loops contained entirely within this loop inline const std::vector &getSubLoops() const { return SubLoops; }