Skip to content

Commit 9969679

Browse files
committed
stdlib: correct protocol registration on ELF
We were misinterpreting the protocol conformances as the protocol sections. It is interesting that this never was caught in any of the runs on the build bots nor was it caught during the normal execution of code.
1 parent 32b2cfc commit 9969679

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/runtime/ImageInspectionELF.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ void swift_addNewDSOImage(const void *addr) {
111111

112112
record(sections);
113113

114-
const auto &protocols_section = sections->swift4_protocol_conformances;
114+
const auto &protocols_section = sections->swift4_protocols;
115115
const void *protocols =
116116
reinterpret_cast<void *>(protocols_section.start);
117117
if (protocols_section.length)

0 commit comments

Comments
 (0)