[objc-gnustep] Fix a copy-and-paste error.

We were emitting the null class symbol in the wrong section, which meant
that programs that contained no Objective-C classes would fail to link.

llvm-svn: 350092
This commit is contained in:
David Chisnall 2018-12-27 14:44:36 +00:00
parent 9352f4706a
commit ddd06821c4
1 changed files with 1 additions and 1 deletions

View File

@ -1547,7 +1547,7 @@ class CGObjCGNUstep2 : public CGObjCGNUstep {
sectionName<CategorySection>());
if (!EmittedClass) {
createNullGlobal(".objc_null_cls_init_ref", NULLPtr,
sectionName<ClassReferenceSection>());
sectionName<ClassSection>());
createNullGlobal(".objc_null_class_ref", { NULLPtr, NULLPtr },
sectionName<ClassReferenceSection>());
}