forked from OSchip/llvm-project
[ADT] Add "return *this;" to PointerEmbeddedInt::operator=.
llvm-svn: 260407
This commit is contained in:
parent
9f4ec2ea85
commit
ad7b6f5aea
|
@ -56,6 +56,7 @@ public:
|
|||
PointerEmbeddedInt &operator=(IntT I) {
|
||||
assert((I & Mask) == 0 && "Integer has bits outside those preserved!");
|
||||
Value = static_cast<uintptr_t>(I) << Shift;
|
||||
return *this;
|
||||
}
|
||||
|
||||
// Note that this implicit conversion additionally allows all of the basic
|
||||
|
|
Loading…
Reference in New Issue