summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2016-02-10 18:54:41 +0000
committerJordan Rose <jordan_rose@apple.com>2016-02-10 18:54:41 +0000
commitad7b6f5aeaaf9c8fbaad65f1e3a9e21ddb76d048 (patch)
tree4fc0cdb1f27d3efa2255e114df9e0af50434d4c9 /llvm
parent9f4ec2ea85a7db8fe89aa50456ad9d04517bc0cc (diff)
downloadbcm5719-llvm-ad7b6f5aeaaf9c8fbaad65f1e3a9e21ddb76d048.tar.gz
bcm5719-llvm-ad7b6f5aeaaf9c8fbaad65f1e3a9e21ddb76d048.zip
[ADT] Add "return *this;" to PointerEmbeddedInt::operator=.
llvm-svn: 260407
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/ADT/PointerEmbeddedInt.h1
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
OpenPOWER on IntegriCloud