Add a const qualifier.
authorDan Gohman <gohman@apple.com>
Fri, 23 Jul 2010 21:18:55 +0000 (21:18 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 23 Jul 2010 21:18:55 +0000 (21:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109266 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ScalarEvolution.cpp

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