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(); }