================
@@ -4014,5 +4016,33 @@ template <> struct 
llvm::DenseMapInfo<llvm::FoldingSetNodeID> {
     return LHS == RHS;
   }
 };
+// The empty/tombstone keys have a null Data, which no interned ref has, so
+// isEqual guards against comparing through their null pointer.
+template <> struct llvm::DenseMapInfo<llvm::FoldingSetNodeIDRef> {
+  static FoldingSetNodeIDRef getEmptyKey() {
+    return FoldingSetNodeIDRef(nullptr, 0);
+  }
+  static FoldingSetNodeIDRef getTombstoneKey() {
+    return FoldingSetNodeIDRef(nullptr, 1);
+  }
----------------
zwuis wrote:

Unused functions.

https://github.com/llvm/llvm-project/pull/218278
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to