diff options
-rw-r--r-- | llvm/include/llvm/ADT/PointerEmbeddedInt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/include/llvm/ADT/PointerEmbeddedInt.h b/llvm/include/llvm/ADT/PointerEmbeddedInt.h index 7f86bf842b1..9562819f283 100644 --- a/llvm/include/llvm/ADT/PointerEmbeddedInt.h +++ b/llvm/include/llvm/ADT/PointerEmbeddedInt.h @@ -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 |