* handle indexing implicit pointer types on llvm

git-svn-id: trunk@30723 -
This commit is contained in:
Jonas Maebe 2015-04-25 15:51:39 +00:00
parent 98c5f7d20f
commit 864f9b24cc

View File

@ -143,7 +143,9 @@ implementation
locref:=nil;
{ avoid uninitialised warning }
arrptrelementdef:=nil;
if not arraytopointerconverted then
if not arraytopointerconverted and
not is_dynamicstring(left.resultdef) and
not is_dynamic_array(left.resultdef) then
begin
{ the result is currently a pointer to left.resultdef (the array type)
-> convert it into a pointer to an element inside this array }