================
@@ -695,6 +695,18 @@ class CFGBlock {
     void dump() const {
       dumpToStream(llvm::errs());
     }
+
+    void Profile(llvm::FoldingSetNodeID &ID) const {
+      ID.AddPointer(Parent);
+      ID.AddInteger(Index);
+    }
+
+    int64_t getID() const {
+      return Parent->getParent()
+          ->getAllocator()
+          .template identifyKnownAlignedObject<CFGElement>(
+              &*(Parent->begin() + Index));
----------------
isuckatcs wrote:

I think both `Parent` and `Parent->getParent()` can be a `nullptr`.

https://github.com/llvm/llvm-project/pull/128251
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to