[BOLT][NFC] Use llvm::is_contained

Apply the replacement throughout BOLT.

Reviewed By: #bolt, rafauler

Differential Revision: https://reviews.llvm.org/D145464
This commit is contained in:
Amir Ayupov
2023-03-14 15:36:40 -07:00
committed by Amir Ayupov
parent 16e67e6932
commit 2eae9d8eb2
3 changed files with 6 additions and 6 deletions

View File

@@ -987,7 +987,7 @@ size_t BinaryFunction::getSizeOfDataInCodeAt(uint64_t Offset) const {
if (!Islands)
return 0;
if (Islands->DataOffsets.find(Offset) == Islands->DataOffsets.end())
if (!llvm::is_contained(Islands->DataOffsets, Offset))
return 0;
auto Iter = Islands->CodeOffsets.upper_bound(Offset);