Add a const qualifier.

llvm-svn: 109266
This commit is contained in:
Dan Gohman 2010-07-23 21:18:55 +00:00
parent 55e244698a
commit 992db006d0
1 changed files with 2 additions and 2 deletions

View File

@ -495,9 +495,9 @@ namespace {
/// than the complexity of the RHS. This comparator is used to canonicalize /// than the complexity of the RHS. This comparator is used to canonicalize
/// expressions. /// expressions.
class SCEVComplexityCompare { class SCEVComplexityCompare {
LoopInfo *LI; const LoopInfo *LI;
public: public:
explicit SCEVComplexityCompare(LoopInfo *li) : LI(li) {} explicit SCEVComplexityCompare(const LoopInfo *li) : LI(li) {}
bool operator()(const SCEV *LHS, const SCEV *RHS) const { bool operator()(const SCEV *LHS, const SCEV *RHS) const {
// Fast-path: SCEVs are uniqued so we can do a quick equality check. // Fast-path: SCEVs are uniqued so we can do a quick equality check.