Skip to content

Commit c9b4ced

Browse files
author
Alex B
committed
Address Feedback Nr.1
1 parent b795c50 commit c9b4ced

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lld/MachO/ObjC.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,9 +1274,7 @@ void ObjcCategoryMerger::eraseMergedCategories() {
12741274

12751275
eraseISec(catInfo.catBodyIsec);
12761276

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
1277+
tryEraseDefinedAtIsecOffset(catInfo.catBodyIsec, catLayout.nameOffset);
12801278
tryEraseDefinedAtIsecOffset(catInfo.catBodyIsec,
12811279
catLayout.instanceMethodsOffset);
12821280
tryEraseDefinedAtIsecOffset(catInfo.catBodyIsec,

0 commit comments

Comments
 (0)