Skip to content

Commit d791fa2

Browse files
[BOLT] Use SmallPtrSet::contains (NFC)
1 parent 03dff0d commit d791fa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bolt/include/bolt/Core/BinaryFunction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1767,7 +1767,7 @@ class BinaryFunction {
17671767

17681768
/// Returns if this function is a parent of \p Other function.
17691769
bool isParentOf(const BinaryFunction &Other) const {
1770-
return llvm::is_contained(Fragments, &Other);
1770+
return Fragments.contains(&Other);
17711771
}
17721772

17731773
/// Return the child fragment form parent function

0 commit comments

Comments
 (0)