Index: lld/MachO/Arch/X86_64.cpp =================================================================== --- lld/MachO/Arch/X86_64.cpp +++ lld/MachO/Arch/X86_64.cpp @@ -52,9 +52,8 @@ static void validateLength(MemoryBufferRef mb, const section_64 &sec, const relocation_info &rel, - const std::vector &validLengths) { - if (std::find(validLengths.begin(), validLengths.end(), rel.r_length) != - validLengths.end()) + ArrayRef validLengths) { + if (find(validLengths, rel.r_length) != validLengths.end()) return; std::string msg = getErrorLocation(mb, sec, rel) + ": relocations of type " +