diff options
author | Juergen Ributzka <juergen@ributzka.de> | 2018-11-29 05:56:03 +0000 |
---|---|---|
committer | Juergen Ributzka <juergen@ributzka.de> | 2018-11-29 05:56:03 +0000 |
commit | b7013d690f466d67b7480e1a41e5f16f3e38fc5b (patch) | |
tree | 688ebf4835a661a60672552403e4ec1a4339c00c /llvm/lib/TextAPI/MachO/TextStub.cpp | |
parent | c2540995ed2bd682d4fe163bdd50ec83a3ed27b4 (diff) | |
download | bcm5719-llvm-b7013d690f466d67b7480e1a41e5f16f3e38fc5b.tar.gz bcm5719-llvm-b7013d690f466d67b7480e1a41e5f16f3e38fc5b.zip |
[TextAPI] Switch back to a custom Platform enum.
Moving to PlatformType from BinaryFormat had some UB fallout when handing
unknown platforms or malformed input files.
This should fix the sanitizer bots.
llvm-svn: 347836
Diffstat (limited to 'llvm/lib/TextAPI/MachO/TextStub.cpp')
-rw-r--r-- | llvm/lib/TextAPI/MachO/TextStub.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/TextAPI/MachO/TextStub.cpp b/llvm/lib/TextAPI/MachO/TextStub.cpp index f46dde6721a..630663d3ea9 100644 --- a/llvm/lib/TextAPI/MachO/TextStub.cpp +++ b/llvm/lib/TextAPI/MachO/TextStub.cpp @@ -515,11 +515,11 @@ template <> struct MappingTraits<const InterfaceFile *> { std::vector<Architecture> Architectures; std::vector<UUID> UUIDs; - PlatformType Platform; + PlatformKind Platform{PlatformKind::unknown}; StringRef InstallName; PackedVersion CurrentVersion; PackedVersion CompatibilityVersion; - SwiftVersion SwiftABIVersion; + SwiftVersion SwiftABIVersion{0}; ObjCConstraintType ObjCConstraint{ObjCConstraintType::None}; TBDFlags Flags{TBDFlags::None}; StringRef ParentUmbrella; |