Skip to content

Commit c78f616

Browse files
bazuziAnthony Tran
authored andcommitted
Revert "[clang][dataflow] Expose simple access to child StorageLocation presence." (llvm#145710)
Reverts llvm#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.
1 parent 75d3e39 commit c78f616

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

clang/include/clang/Analysis/FlowSensitive/StorageLocation.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,6 @@ class RecordStorageLocation final : public StorageLocation {
168168
return {Children.begin(), Children.end()};
169169
}
170170

171-
bool hasChild(const ValueDecl &D) const { return Children.contains(&D); }
172-
173171
private:
174172
FieldToLoc Children;
175173
SyntheticFieldMap SyntheticFields;

0 commit comments

Comments
 (0)