Browse Source

* don't use a voidpointer typecast to access hardcoded objc fields, because
that sets the alignment to 1 and hence causes unnecessary unaligned
loads/stores on ARM

git-svn-id: trunk@14291 -

Jonas Maebe 15 năm trước cách đây
mục cha
commit
f191ab39cd
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      compiler/objcutil.pas

+ 1 - 1
compiler/objcutil.pas

@@ -121,7 +121,7 @@ end;
       var
         vs         : tsym;
       begin
-        result:=ctypeconvnode.create_internal(cderefnode.create(ctypeconvnode.create_internal(n,voidpointertype)),objc_objecttype);
+        result:=cderefnode.create(ctypeconvnode.create_internal(n,objc_idtype));
         vs:=tsym(tabstractrecorddef(objc_objecttype).symtable.Find(fieldname));
         if not assigned(vs) or
            (vs.typ<>fieldvarsym) then