[llvm-branch-commits] [llvm-branch] r109610 - /llvm/branches/Apple/williamson/lib/Analysis/ScalarEvolution.cpp

Daniel Dunbar daniel at zuster.org
Wed Jul 28 11:40:42 PDT 2010


Author: ddunbar
Date: Wed Jul 28 13:40:42 2010
New Revision: 109610

URL: http://llvm.org/viewvc/llvm-project?rev=109610&view=rev
Log:
Merge r109266:
--
Author: Dan Gohman <gohman at apple.com>
Date:   Fri Jul 23 21:18:55 2010 +0000

    Add a const qualifier.

Modified:
    llvm/branches/Apple/williamson/lib/Analysis/ScalarEvolution.cpp

Modified: llvm/branches/Apple/williamson/lib/Analysis/ScalarEvolution.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/williamson/lib/Analysis/ScalarEvolution.cpp?rev=109610&r1=109609&r2=109610&view=diff
==============================================================================
--- llvm/branches/Apple/williamson/lib/Analysis/ScalarEvolution.cpp (original)
+++ llvm/branches/Apple/williamson/lib/Analysis/ScalarEvolution.cpp Wed Jul 28 13:40:42 2010
@@ -495,9 +495,9 @@
   /// 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.





More information about the llvm-branch-commits mailing list