diff options
author | Bill Wendling <isanbard@gmail.com> | 2008-09-25 22:42:01 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2008-09-25 22:42:01 +0000 |
commit | c4f72dd6e759a170808ecfc6be784f8598367484 (patch) | |
tree | 3170bbe038e1cf33b34d6d7c08126695f67c4e56 /lib/VMCore/Value.cpp | |
parent | 0598866c052147c31b808391f58434ce3dbfb838 (diff) | |
download | external_llvm-c4f72dd6e759a170808ecfc6be784f8598367484.zip external_llvm-c4f72dd6e759a170808ecfc6be784f8598367484.tar.gz external_llvm-c4f72dd6e759a170808ecfc6be784f8598367484.tar.bz2 |
Make pointer parameter const for isUsedInBasicBlock.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56625 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Value.cpp')
-rw-r--r-- | lib/VMCore/Value.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Value.cpp b/lib/VMCore/Value.cpp index bc5b7a9..d143b6b 100644 --- a/lib/VMCore/Value.cpp +++ b/lib/VMCore/Value.cpp @@ -95,7 +95,7 @@ bool Value::hasNUsesOrMore(unsigned N) const { /// isUsedInBasicBlock - Return true if this value is used in the specified /// basic block. -bool Value::isUsedInBasicBlock(BasicBlock *BB) const { +bool Value::isUsedInBasicBlock(const BasicBlock *BB) const { for (use_const_iterator I = use_begin(), E = use_end(); I != E; ++I) { const Instruction *User = dyn_cast<Instruction>(*I); if (User && User->getParent() == BB) |