From bdc2aaec4786c3ceb7783c94cd9c9d1dbc65eb59 Mon Sep 17 00:00:00 2001 From: Jonas Maebe Date: Thu, 6 Mar 2014 21:42:10 +0000 Subject: [PATCH] * 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 - --- compiler/llvm/llvmdef.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/llvm/llvmdef.pas b/compiler/llvm/llvmdef.pas index 41b41f307e..dcc269b7e2 100644 --- a/compiler/llvm/llvmdef.pas +++ b/compiler/llvm/llvmdef.pas @@ -154,9 +154,9 @@ implementation st_unicodestring: { the variable does not point to the header, but to a null-terminated string/array with undefined bounds } - encodedstr:=encodedstr+'[0 x i16]'; + encodedstr:=encodedstr+'i16*'; st_ansistring: - encodedstr:=encodedstr+'[0 x i8]'; + encodedstr:=encodedstr+'i8*'; st_shortstring: { length byte followed by string bytes } if tstringdef(def).len>0 then