Skip to content

Commit e1a5843

Browse files
[BOLT] Use llvm::is_contained (NFC)
1 parent d871dae commit e1a5843

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bolt/lib/Passes/ValidateMemRefs.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ bool ValidateMemRefs::checkAndFixJTReference(BinaryFunction &BF, MCInst &Inst,
3434
if (!JT)
3535
return false;
3636

37-
const bool IsLegitAccess = llvm::any_of(
38-
JT->Parents, [&](const BinaryFunction *Parent) { return Parent == &BF; });
37+
const bool IsLegitAccess = llvm::is_contained(JT->Parents, &BF);
3938
if (IsLegitAccess)
4039
return true;
4140

0 commit comments

Comments
 (0)