aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Support/CallSite.h2
-rw-r--r--lib/VMCore/Instructions.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Support/CallSite.h b/include/llvm/Support/CallSite.h
index 513269f..9a6c008 100644
--- a/include/llvm/Support/CallSite.h
+++ b/include/llvm/Support/CallSite.h
@@ -132,7 +132,7 @@ public:
/// hasArgument - Returns true if this CallSite passes the given Value* as an
/// argument to the called function.
- bool hasArgument(Value *Arg);
+ bool hasArgument(const Value *Arg) const;
/// arg_iterator - The type of iterator to use when looping over actual
/// arguments at this call site...
diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp
index d789267..f66076d 100644
--- a/lib/VMCore/Instructions.cpp
+++ b/lib/VMCore/Instructions.cpp
@@ -91,7 +91,7 @@ void CallSite::setDoesNotThrow(bool doesNotThrow) {
cast<InvokeInst>(I)->setDoesNotThrow(doesNotThrow);
}
-bool CallSite::hasArgument(Value *Arg) {
+bool CallSite::hasArgument(const Value *Arg) const {
for (arg_iterator AI = this->arg_begin(), E = this->arg_end(); AI != E; ++AI)
if (AI->get() == Arg)
return true;