diff options
| author | Cyndy Ishida <cyndy_ishida@apple.com> | 2023-04-01 08:28:48 -0700 |
|---|---|---|
| committer | Cyndy Ishida <cyndy_ishida@apple.com> | 2023-04-01 08:38:30 -0700 |
| commit | 7de8cd617b6980e0881a84e3dbfda94c3227e98a (patch) | |
| tree | 6a0d45366be5926f4717b68732b21b63ec227d4d /llvm/lib/TextAPI/InterfaceFile.cpp | |
| parent | 859c7e4b10edd3ef92b9e04b50708ae850a554a9 (diff) | |
[llvm][TextAPI] only compare deployment version for InterfaceFile.
Diffstat (limited to 'llvm/lib/TextAPI/InterfaceFile.cpp')
| -rw-r--r-- | llvm/lib/TextAPI/InterfaceFile.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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(), |
