From 84611d716bccaea89fa8917ac742b50c8ccd8821 Mon Sep 17 00:00:00 2001 From: nickysn Date: Fri, 9 Feb 2018 16:15:40 +0000 Subject: [PATCH] * convert the 'var' parameters of tx86intreader.BuildRecordOffsetSize to 'out' git-svn-id: trunk@38171 - --- compiler/x86/rax86int.pas | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compiler/x86/rax86int.pas b/compiler/x86/rax86int.pas index d35ab3fde5..477ccecb9e 100644 --- a/compiler/x86/rax86int.pas +++ b/compiler/x86/rax86int.pas @@ -63,7 +63,7 @@ Unit Rax86int; procedure GetToken; function consume(t : tasmtoken):boolean; procedure RecoverConsume(allowcomma:boolean); - procedure BuildRecordOffsetSize(const expr: string;var offset:tcgint;var size:tcgint; var mangledname: string; needvmtofs: boolean; out hastypecast: boolean); + procedure BuildRecordOffsetSize(const expr: string;out offset:tcgint;out size:tcgint; out mangledname: string; needvmtofs: boolean; out hastypecast: boolean); procedure BuildConstSymbolExpression(needofs,isref,startingminus:boolean;var value:tcgint;var asmsym:string;var asmsymtyp:TAsmsymtype;out isseg,is_farproc_entry,hasofs:boolean); function BuildConstExpression:aint; function BuildRefConstExpression(startingminus:boolean=false):aint; @@ -764,12 +764,13 @@ Unit Rax86int; { This routine builds up a record offset after a AS_DOT token is encountered. On entry actasmtoken should be equal to AS_DOT } - Procedure tx86intreader.BuildRecordOffsetSize(const expr: string;var offset:tcgint;var size:tcgint; var mangledname: string; needvmtofs: boolean; out hastypecast: boolean); + Procedure tx86intreader.BuildRecordOffsetSize(const expr: string;out offset:tcgint;out size:tcgint; out mangledname: string; needvmtofs: boolean; out hastypecast: boolean); var s: string; Begin offset:=0; size:=0; + mangledname:=''; hastypecast:=false; s:=expr; while (actasmtoken=AS_DOT) do