mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 23:49:22 +08:00
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user