[ADT] Add "return *this;" to PointerEmbeddedInt::operator=.
authorJordan Rose <jordan_rose@apple.com>
Wed, 10 Feb 2016 18:54:41 +0000 (18:54 +0000)
committerJordan Rose <jordan_rose@apple.com>
Wed, 10 Feb 2016 18:54:41 +0000 (18:54 +0000)
llvm-svn: 260407

llvm/include/llvm/ADT/PointerEmbeddedInt.h

index 7f86bf8..9562819 100644 (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