[llvm-commits] [llvm] r82331 - /llvm/trunk/include/llvm/Support/ValueHandle.h
Daniel Dunbar
daniel at zuster.org
Sat Sep 19 13:39:50 PDT 2009
Author: ddunbar
Date: Sat Sep 19 15:39:50 2009
New Revision: 82331
URL: http://llvm.org/viewvc/llvm-project?rev=82331&view=rev
Log:
RHS of assignment should be const reference.
Modified:
llvm/trunk/include/llvm/Support/ValueHandle.h
Modified: llvm/trunk/include/llvm/Support/ValueHandle.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/ValueHandle.h?rev=82331&r1=82330&r2=82331&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/ValueHandle.h (original)
+++ llvm/trunk/include/llvm/Support/ValueHandle.h Sat Sep 19 15:39:50 2009
@@ -202,7 +202,7 @@
setValPtr(RHS);
return getValPtr();
}
- ValueTy *operator=(AssertingVH<ValueTy> &RHS) {
+ ValueTy *operator=(const AssertingVH<ValueTy> &RHS) {
setValPtr(RHS.getValPtr());
return getValPtr();
}
More information about the llvm-commits
mailing list