From ad7b6f5aeaaf9c8fbaad65f1e3a9e21ddb76d048 Mon Sep 17 00:00:00 2001 From: Jordan Rose Date: Wed, 10 Feb 2016 18:54:41 +0000 Subject: [PATCH] [ADT] Add "return *this;" to PointerEmbeddedInt::operator=. llvm-svn: 260407 --- llvm/include/llvm/ADT/PointerEmbeddedInt.h | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/include/llvm/ADT/PointerEmbeddedInt.h b/llvm/include/llvm/ADT/PointerEmbeddedInt.h index 7f86bf8..9562819 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(I) << Shift; + return *this; } // Note that this implicit conversion additionally allows all of the basic -- 2.7.4