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.
1 parent b795c50 commit c9b4cedCopy full SHA for c9b4ced
lld/MachO/ObjC.cpp
@@ -1274,9 +1274,7 @@ void ObjcCategoryMerger::eraseMergedCategories() {
1274
1275
eraseISec(catInfo.catBodyIsec);
1276
1277
- // We can't erase 'catLayout.nameOffset' because for Swift categories, the
1278
- // name will be referenced in __METACLASS_DATA_.
1279
- // TODO: handle the above smarter
+ tryEraseDefinedAtIsecOffset(catInfo.catBodyIsec, catLayout.nameOffset);
1280
tryEraseDefinedAtIsecOffset(catInfo.catBodyIsec,
1281
catLayout.instanceMethodsOffset);
1282
0 commit comments