Skip to content

Commit 651045f

Browse files
authored
Merge pull request #25208 from compnerd/tautologically-incomplete
swift-reflection-test: silence tautological warning
2 parents a740ee5 + 7b1f732 commit 651045f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

stdlib/tools/swift-reflection-test/swift-reflection-test.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,11 +575,16 @@ int main(int argc, char *argv[]) {
575575
printUsageAndExit();
576576

577577
const char *BinaryFilename = argv[1];
578-
578+
579+
#if defined(_WIN32)
580+
// FIXME(compnerd) weak linking is not permitted on PE/COFF, we should fall
581+
// back to GetProcAddress to see if the symbol is present.
582+
#else
579583
// swift_reflection_classIsSwiftMask is weak linked so we can work
580584
// with older Remote Mirror dylibs.
581585
if (&swift_reflection_classIsSwiftMask != NULL)
582586
swift_reflection_classIsSwiftMask = computeClassIsSwiftMask();
587+
#endif
583588

584589
uint16_t Version = swift_reflection_getSupportedMetadataVersion();
585590
printf("Metadata version: %u\n", Version);

0 commit comments

Comments
 (0)