summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/IVUsers.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-06 01:31:12 +0000
committerDan Gohman <gohman@apple.com>2010-04-06 01:31:12 +0000
commit91ce8e9a5cae10811bf525de27d8115ddc4690c2 (patch)
treed0220bda64681aaf7b8aa10321495c8474dd41a3 /llvm/lib/Analysis/IVUsers.cpp
parentff8f4f626279d1e00b60be29bcf74d364a167a24 (diff)
downloadbcm5719-llvm-91ce8e9a5cae10811bf525de27d8115ddc4690c2.tar.gz
bcm5719-llvm-91ce8e9a5cae10811bf525de27d8115ddc4690c2.zip
Add a const qualifier.
llvm-svn: 100515
Diffstat (limited to 'llvm/lib/Analysis/IVUsers.cpp')
-rw-r--r--llvm/lib/Analysis/IVUsers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/IVUsers.cpp b/llvm/lib/Analysis/IVUsers.cpp
index 98a436f79bd..47b5d4a0f08 100644
--- a/llvm/lib/Analysis/IVUsers.cpp
+++ b/llvm/lib/Analysis/IVUsers.cpp
@@ -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;
OpenPOWER on IntegriCloud