diff --git a/lib/Analysis/LoopInfo.cpp b/lib/Analysis/LoopInfo.cpp index d99f0f70d92..29558dab8b5 100644 --- a/lib/Analysis/LoopInfo.cpp +++ b/lib/Analysis/LoopInfo.cpp @@ -18,7 +18,7 @@ AnalysisID LoopInfo::ID(AnalysisID::create(), true); //===----------------------------------------------------------------------===// // Loop implementation // -bool Loop::contains(BasicBlock *BB) const { +bool Loop::contains(const BasicBlock *BB) const { return find(Blocks.begin(), Blocks.end(), BB) != Blocks.end(); }