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

Roman Lebedev via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 27 06:55:11 PST 2018


test?

On Thu, Dec 27, 2018 at 5:47 PM David Chisnall via cfe-commits
<cfe-commits at lists.llvm.org> wrote:
>
> Author: theraven
> Date: Thu Dec 27 06:44:36 2018
> New Revision: 350092
>
> URL: http://llvm.org/viewvc/llvm-project?rev=350092&view=rev
> Log:
> [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.
>
> Modified:
>     cfe/trunk/lib/CodeGen/CGObjCGNU.cpp
>
> Modified: cfe/trunk/lib/CodeGen/CGObjCGNU.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjCGNU.cpp?rev=350092&r1=350091&r2=350092&view=diff
> ==============================================================================
> --- cfe/trunk/lib/CodeGen/CGObjCGNU.cpp (original)
> +++ cfe/trunk/lib/CodeGen/CGObjCGNU.cpp Thu Dec 27 06:44:36 2018
> @@ -1547,7 +1547,7 @@ class CGObjCGNUstep2 : public CGObjCGNUs
>              sectionName<CategorySection>());
>        if (!EmittedClass) {
>          createNullGlobal(".objc_null_cls_init_ref", NULLPtr,
> -            sectionName<ClassReferenceSection>());
> +            sectionName<ClassSection>());
>          createNullGlobal(".objc_null_class_ref", { NULLPtr, NULLPtr },
>              sectionName<ClassReferenceSection>());
>        }
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


More information about the cfe-commits mailing list