forked from OSchip/llvm-project
Lang verified that SlotIndex is "pod like" even though it isn't a pod.
llvm-svn: 91423
This commit is contained in:
parent
2f3da9b205
commit
9c45e03664
|
@ -329,7 +329,6 @@ namespace llvm {
|
||||||
};
|
};
|
||||||
|
|
||||||
/// DenseMapInfo specialization for SlotIndex.
|
/// DenseMapInfo specialization for SlotIndex.
|
||||||
/// TODO: Not a POD?
|
|
||||||
template <>
|
template <>
|
||||||
struct DenseMapInfo<SlotIndex> {
|
struct DenseMapInfo<SlotIndex> {
|
||||||
static inline SlotIndex getEmptyKey() {
|
static inline SlotIndex getEmptyKey() {
|
||||||
|
@ -345,6 +344,9 @@ namespace llvm {
|
||||||
return (LHS == RHS);
|
return (LHS == RHS);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template <> struct isPodLike<SlotIndex> { static const bool value = true; };
|
||||||
|
|
||||||
|
|
||||||
inline raw_ostream& operator<<(raw_ostream &os, SlotIndex li) {
|
inline raw_ostream& operator<<(raw_ostream &os, SlotIndex li) {
|
||||||
li.print(os);
|
li.print(os);
|
||||||
|
|
Loading…
Reference in New Issue