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/TextStubCommon.h | |
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/TextStubCommon.h')
-rw-r--r-- | llvm/lib/TextAPI/MachO/TextStubCommon.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/TextAPI/MachO/TextStubCommon.h b/llvm/lib/TextAPI/MachO/TextStubCommon.h index eadd2f52dc5..cd6d49a0191 100644 --- a/llvm/lib/TextAPI/MachO/TextStubCommon.h +++ b/llvm/lib/TextAPI/MachO/TextStubCommon.h @@ -43,9 +43,9 @@ template <> struct ScalarEnumerationTraits<MachO::ObjCConstraintType> { static void enumeration(IO &, MachO::ObjCConstraintType &); }; -template <> struct ScalarTraits<MachO::PlatformType> { - static void output(const MachO::PlatformType &, void *, raw_ostream &); - static StringRef input(StringRef, void *, MachO::PlatformType &); +template <> struct ScalarTraits<MachO::PlatformKind> { + static void output(const MachO::PlatformKind &, void *, raw_ostream &); + static StringRef input(StringRef, void *, MachO::PlatformKind &); static QuotingType mustQuote(StringRef); }; |