[clang] e64f5dd - Revert "[clang][dataflow] Expose simple access to child StorageLocation presence." (#145710)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 25 07:24:33 PDT 2025
Author: Samira Bakon
Date: 2025-06-25T10:24:29-04:00
New Revision: e64f5dd948478505a790e339525847c71eb1eb24
URL: https://github.com/llvm/llvm-project/commit/e64f5dd948478505a790e339525847c71eb1eb24
DIFF: https://github.com/llvm/llvm-project/commit/e64f5dd948478505a790e339525847c71eb1eb24.diff
LOG: Revert "[clang][dataflow] Expose simple access to child StorageLocation presence." (#145710)
Reverts llvm/llvm-project#145520
Exposed function is no longer needed and side-stepped the intended
contract that the present children are the same set returned by
`getModeledFields()` and presence shouldn't need to be queried for
arbitrary fields.
Added:
Modified:
clang/include/clang/Analysis/FlowSensitive/StorageLocation.h
Removed:
################################################################################
diff --git a/clang/include/clang/Analysis/FlowSensitive/StorageLocation.h b/clang/include/clang/Analysis/FlowSensitive/StorageLocation.h
index 8b263b16d5b1e..8fcc6a44027a0 100644
--- a/clang/include/clang/Analysis/FlowSensitive/StorageLocation.h
+++ b/clang/include/clang/Analysis/FlowSensitive/StorageLocation.h
@@ -168,8 +168,6 @@ class RecordStorageLocation final : public StorageLocation {
return {Children.begin(), Children.end()};
}
- bool hasChild(const ValueDecl &D) const { return Children.contains(&D); }
-
private:
FieldToLoc Children;
SyntheticFieldMap SyntheticFields;
More information about the cfe-commits
mailing list