[clang] [Clang][analyzer] replace Stmt* with ConstCFGElementRef in SymbolConjured (PR #128251)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Feb 23 17:26:45 PST 2025
================
@@ -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
More information about the cfe-commits
mailing list