projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f4ec2e
)
[ADT] Add "return *this;" to PointerEmbeddedInt::operator=.
author
Jordan Rose
<jordan_rose@apple.com>
Wed, 10 Feb 2016 18:54:41 +0000
(18:54 +0000)
committer
Jordan 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
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/ADT/PointerEmbeddedInt.h
b/llvm/include/llvm/ADT/PointerEmbeddedInt.h
index
7f86bf8
..
9562819
100644
(file)
--- 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