Browse Source

* fixed ansistring and unicodestring llvm defs (pointer indirection was
missing, and replaced by plain pointer because the array definition does
not add any useful information)

git-svn-id: branches/hlcgllvm@27012 -

Jonas Maebe 11 years ago
parent
commit
bdc2aaec47
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/llvm/llvmdef.pas

+ 2 - 2
compiler/llvm/llvmdef.pas

@@ -154,9 +154,9 @@ implementation
                 st_unicodestring:
                 st_unicodestring:
                   { the variable does not point to the header, but to a
                   { the variable does not point to the header, but to a
                     null-terminated string/array with undefined bounds }
                     null-terminated string/array with undefined bounds }
-                  encodedstr:=encodedstr+'[0 x i16]';
+                  encodedstr:=encodedstr+'i16*';
                 st_ansistring:
                 st_ansistring:
-                  encodedstr:=encodedstr+'[0 x i8]';
+                  encodedstr:=encodedstr+'i8*';
                 st_shortstring:
                 st_shortstring:
                   { length byte followed by string bytes }
                   { length byte followed by string bytes }
                   if tstringdef(def).len>0 then
                   if tstringdef(def).len>0 then