From 7de8cd617b6980e0881a84e3dbfda94c3227e98a Mon Sep 17 00:00:00 2001 From: Cyndy Ishida Date: Sat, 1 Apr 2023 08:28:48 -0700 Subject: [llvm][TextAPI] only compare deployment version for InterfaceFile. --- llvm/lib/TextAPI/InterfaceFile.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/TextAPI/InterfaceFile.cpp') diff --git a/llvm/lib/TextAPI/InterfaceFile.cpp b/llvm/lib/TextAPI/InterfaceFile.cpp index 5d3cf851dadc..8c0b65916026 100644 --- a/llvm/lib/TextAPI/InterfaceFile.cpp +++ b/llvm/lib/TextAPI/InterfaceFile.cpp @@ -174,6 +174,8 @@ bool InterfaceFile::operator==(const InterfaceFile &O) const { if (!(isYAMLTextStub(FileKind)) && !(isYAMLTextStub(O.FileKind))) { if (RPaths != O.RPaths) return false; + if (mapToPlatformVersionSet(Targets) != mapToPlatformVersionSet(O.Targets)) + return false; } if (!std::equal(Documents.begin(), Documents.end(), O.Documents.begin(), -- cgit v1.2.3