summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-09-19 20:39:50 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-09-19 20:39:50 +0000
commit7e32c4fa72f8663abce1121965c3065f5dfa6747 (patch)
treee640972e50ef60ca679cb295a013a87d00e05174 /include
parentc332fba8285e35a5a11463c34795af84f3960759 (diff)
downloadllvm-7e32c4fa72f8663abce1121965c3065f5dfa6747.tar.gz
llvm-7e32c4fa72f8663abce1121965c3065f5dfa6747.tar.bz2
llvm-7e32c4fa72f8663abce1121965c3065f5dfa6747.tar.xz
RHS of assignment should be const reference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82331 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/ValueHandle.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/ValueHandle.h b/include/llvm/Support/ValueHandle.h
index e0e06e1186..91e529e959 100644
--- a/include/llvm/Support/ValueHandle.h
+++ b/include/llvm/Support/ValueHandle.h
@@ -202,7 +202,7 @@ public:
setValPtr(RHS);
return getValPtr();
}
- ValueTy *operator=(AssertingVH<ValueTy> &RHS) {
+ ValueTy *operator=(const AssertingVH<ValueTy> &RHS) {
setValPtr(RHS.getValPtr());
return getValPtr();
}