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:
44a6bda
)
[ADT] Delete unused llvm::pointer_union_detail::AssignableFrom
author
Fangrui Song
<i@maskray.me>
Wed, 22 Jul 2020 16:23:52 +0000
(09:23 -0700)
committer
Fangrui Song
<i@maskray.me>
Wed, 22 Jul 2020 16:24:36 +0000
(09:24 -0700)
Noticed by Zhiwei Chen
llvm/include/llvm/ADT/PointerUnion.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/ADT/PointerUnion.h
b/llvm/include/llvm/ADT/PointerUnion.h
index
6fecff8
..
c396910
100644
(file)
--- a/
llvm/include/llvm/ADT/PointerUnion.h
+++ b/
llvm/include/llvm/ADT/PointerUnion.h
@@
-93,13
+93,6
@@
namespace pointer_union_detail {
static constexpr int NumLowBitsAvailable = lowBitsAvailable<PTs...>();
};
- /// Implement assignment in terms of construction.
- template <typename Derived, typename T> struct AssignableFrom {
- Derived &operator=(T t) {
- return static_cast<Derived &>(*this) = Derived(t);
- }
- };
-
template <typename Derived, typename ValTy, int I, typename ...Types>
class PointerUnionMembers;