Browse Source

* handle indexing implicit pointer types on llvm

git-svn-id: trunk@30723 -
Jonas Maebe 10 years ago
parent
commit
864f9b24cc
1 changed files with 3 additions and 1 deletions
  1. 3 1
      compiler/llvm/nllvmmem.pas

+ 3 - 1
compiler/llvm/nllvmmem.pas

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