Add a const qualifier.
authorDan Gohman <gohman@apple.com>
Tue, 6 Apr 2010 01:31:12 +0000 (01:31 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 6 Apr 2010 01:31:12 +0000 (01:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100515 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/IVUsers.cpp

index 98a436f79bd817f4b629d15d77fac8576059c67e..47b5d4a0f08d024c610b548dc4fe946bca3a708e 100644 (file)
@@ -142,7 +142,7 @@ static bool getSCEVStartAndStride(const SCEV *&SH, Loop *L, Loop *UseLoop,
 /// the loop, resulting in reg-reg copies (if we use the pre-inc value when we
 /// should use the post-inc value).
 static bool IVUseShouldUsePostIncValue(Instruction *User, Instruction *IV,
-                                       Loop *L, DominatorTree *DT) {
+                                       const Loop *L, DominatorTree *DT) {
   // If the user is in the loop, use the preinc value.
   if (L->contains(User)) return false;