aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/TextAPI
diff options
context:
space:
mode:
authorCyndy Ishida <cyndy_ishida@apple.com>2023-02-22 22:23:33 -0800
committerCyndy Ishida <cyndy_ishida@apple.com>2023-02-22 22:26:13 -0800
commite61e761643a887fca7ef2dbae14a6b96de67fa5d (patch)
treed647b5a987efd57debe961e6f0cb0f88ff91c210 /llvm/unittests/TextAPI
parent3fac87b67749ece892fa6e797236eddc22c69ff6 (diff)
downloadllvm-e61e761643a887fca7ef2dbae14a6b96de67fa5d.zip
llvm-e61e761643a887fca7ef2dbae14a6b96de67fa5d.tar.gz
llvm-e61e761643a887fca7ef2dbae14a6b96de67fa5d.tar.bz2
[llvm][TextAPI] add Default FileType value to InterfaceFile Objects
* This silences msan errors
Diffstat (limited to 'llvm/unittests/TextAPI')
-rw-r--r--llvm/unittests/TextAPI/TextStubV3Tests.cpp1
-rw-r--r--llvm/unittests/TextAPI/TextStubV4Tests.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/llvm/unittests/TextAPI/TextStubV3Tests.cpp b/llvm/unittests/TextAPI/TextStubV3Tests.cpp
index b97b6a2..65b2f2d 100644
--- a/llvm/unittests/TextAPI/TextStubV3Tests.cpp
+++ b/llvm/unittests/TextAPI/TextStubV3Tests.cpp
@@ -940,6 +940,7 @@ TEST(TBDv3, InterfaceInequality) {
}));
EXPECT_TRUE(checkEqualityOnTransform(FileA, FileB, [](InterfaceFile *File) {
InterfaceFile Document;
+ Document.setFileType(FileType::TBD_V3);
Document.addTargets(TargetList{Target(AK_armv7, PLATFORM_IOS),
Target(AK_arm64, PLATFORM_IOS)});
Document.setInstallName("/System/Library/Frameworks/A.framework/A");
diff --git a/llvm/unittests/TextAPI/TextStubV4Tests.cpp b/llvm/unittests/TextAPI/TextStubV4Tests.cpp
index 39dac0a..f474641 100644
--- a/llvm/unittests/TextAPI/TextStubV4Tests.cpp
+++ b/llvm/unittests/TextAPI/TextStubV4Tests.cpp
@@ -1166,6 +1166,7 @@ TEST(TBDv4, InterfaceInequality) {
}));
EXPECT_TRUE(checkEqualityOnTransform(FileA, FileB, [](InterfaceFile *File) {
InterfaceFile Document;
+ Document.setFileType(FileType::TBD_V4);
Document.addTargets(TargetList{Target(AK_i386, PLATFORM_MACOS),
Target(AK_x86_64, PLATFORM_MACOS)});
Document.setInstallName("/System/Library/Frameworks/A.framework/A");