[ADT] Add "return *this;" to PointerEmbeddedInt::operator=.

llvm-svn: 260407
This commit is contained in:
Jordan Rose 2016-02-10 18:54:41 +00:00
parent 9f4ec2ea85
commit ad7b6f5aea
1 changed files with 1 additions and 0 deletions

View File

@ -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