* correctly encode bitpacked arrays of elements that can't be bitpacked

git-svn-id: trunk@32555 -
This commit is contained in:
Jonas Maebe 2015-11-29 21:46:06 +00:00
parent a27927e658
commit da8d276766

View File

@ -419,7 +419,8 @@ implementation
llvmaddencodedtype_intern(tarraydef(def).elementdef,[],encodedstr);
encodedstr:=encodedstr+'*';
end
else if is_packed_array(def) then
else if is_packed_array(def) and
(tarraydef(def).elementdef.typ in [enumdef,orddef]) then
begin
encodedstr:=encodedstr+'['+tostr(tarraydef(def).size div tarraydef(def).elementdef.packedbitsize)+' x ';
{ encode as an array of integers with the size on which we