Browse Source

* a loadsize of 1 can never cause alignment problems in subsetref
routines

git-svn-id: trunk@7308 -

Jonas Maebe 18 years ago
parent
commit
acad2913d6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      compiler/cgobj.pas

+ 1 - 0
compiler/cgobj.pas

@@ -1155,6 +1155,7 @@ implementation
 {$if not(defined(arm)) and not(defined(sparc))}
         { may need to be split into several smaller loads/stores }
         if (tf_requires_proper_alignment in target_info.flags) and
+           (intloadsize <> 1) and
            (intloadsize <> sref.ref.alignment) then
           internalerror(2006082011);
 {$endif not(defined(arm)) and not(defined(sparc))}