File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1267,6 +1267,18 @@ template <> struct DenseMapInfo<swift::AccessPathWithBase> {
1267
1267
}
1268
1268
};
1269
1269
1270
+ // Allow AccessPath::PathNode to be used as a pointer-like template argument.
1271
+ template <>
1272
+ struct PointerLikeTypeTraits <swift::AccessPath::PathNode> {
1273
+ static inline void *getAsVoidPointer (swift::AccessPath::PathNode node) {
1274
+ return (void *)node.node ;
1275
+ }
1276
+ static inline swift::AccessPath::PathNode getFromVoidPointer (void *pointer) {
1277
+ return swift::AccessPath::PathNode ((swift::IndexTrieNode *)pointer);
1278
+ }
1279
+ enum { NumLowBitsAvailable =
1280
+ PointerLikeTypeTraits<swift::IndexTrieNode *>::NumLowBitsAvailable };
1281
+ };
1270
1282
} // end namespace llvm
1271
1283
1272
1284
// ===----------------------------------------------------------------------===//
You can’t perform that action at this time.
0 commit comments