diff options
author | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2014-08-19 20:22:48 +0000 |
---|---|---|
committer | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2014-08-19 20:22:48 +0000 |
commit | 91c9563126e474683e89928b99a370c2f2b3cf32 (patch) | |
tree | f5b46e875ef6939bc60b95ed721c522ef8098e99 /compiler/hlcgobj.pas | |
parent | 739f468c98fc96453fc1270233715287bc1eeab8 (diff) | |
download | fpc-91c9563126e474683e89928b99a370c2f2b3cf32.tar.gz |
* record the alignment of temps, and set it when creating a reference based
on a temp instead of assuming it's always aligned to a multiple of
the stackpointer size
git-svn-id: http://svn.freepascal.org/svn/fpc/branches/hlcgllvm@28490 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/hlcgobj.pas')
-rw-r--r-- | compiler/hlcgobj.pas | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/hlcgobj.pas b/compiler/hlcgobj.pas index 9b64aa4807..8c58963206 100644 --- a/compiler/hlcgobj.pas +++ b/compiler/hlcgobj.pas @@ -812,7 +812,7 @@ implementation procedure thlcgobj.temp_to_ref(p: ptemprecord; out ref: treference); begin - reference_reset_base(ref,voidstackpointertype,current_procinfo.framepointer,p^.pos,voidstackpointertype.size); + reference_reset_base(ref,voidstackpointertype,current_procinfo.framepointer,p^.pos,p^.alignment); end; procedure thlcgobj.a_label(list: TAsmList; l: tasmlabel); inline; |