Allow const bb's to be checked for containment in a loop
authorChris Lattner <sabre@nondot.org>
Mon, 3 Jun 2002 22:10:48 +0000 (22:10 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 3 Jun 2002 22:10:48 +0000 (22:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2754 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/LoopInfo.h

index bb9058c256e4a3434c29d641067eb6f6e2a6fa08..16605e5a527030afd6c9e136dc29d3e56d57d595 100644 (file)
@@ -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<Loop*> &getSubLoops() const { return SubLoops; }