From: Daniel Dunbar Date: Sat, 19 Sep 2009 20:39:50 +0000 (+0000) Subject: RHS of assignment should be const reference. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7e32c4fa72f8663abce1121965c3065f5dfa6747;p=oota-llvm.git RHS of assignment should be const reference. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82331 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/ValueHandle.h b/include/llvm/Support/ValueHandle.h index e0e06e11863..91e529e959b 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(); }