From 80b13b31a80b54768abc2da9f00a725209702816 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sat, 19 Sep 2009 20:39:50 +0000 Subject: RHS of assignment should be const reference. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82331 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/ValueHandle.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/llvm/Support') diff --git a/include/llvm/Support/ValueHandle.h b/include/llvm/Support/ValueHandle.h index e0e06e1..91e529e 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 &RHS) { + ValueTy *operator=(const AssertingVH &RHS) { setValPtr(RHS.getValPtr()); return getValPtr(); } -- cgit v1.1