We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9ac4ebc + ad1a336 commit d438c88Copy full SHA for d438c88
include/swift/RemoteInspection/ReflectionContext.h
@@ -635,6 +635,9 @@ class ReflectionContext
635
return {nullptr, 0};
636
// Now for all the sections, find their name.
637
for (const typename T::Section *Hdr : SecHdrVec) {
638
+ // Skip unused headers
639
+ if (Hdr->sh_type == llvm::ELF::SHT_NULL)
640
+ continue;
641
uint32_t Offset = Hdr->sh_name;
642
const char *Start = (const char *)StrTab + Offset;
643
uint64_t StringSize = strnlen(Start, StrTabSize - Offset);
0 commit comments