Преглед на файлове

* handle indexing implicit pointer types on llvm

git-svn-id: trunk@30723 -
Jonas Maebe преди 10 години
родител
ревизия
864f9b24cc
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      compiler/llvm/nllvmmem.pas

+ 3 - 1
compiler/llvm/nllvmmem.pas

@@ -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 }