From eeae34ea7d486a835e715fd1ed5c29d4042efaf0 Mon Sep 17 00:00:00 2001 From: Jonas Maebe Date: Thu, 30 Jun 2016 15:33:31 +0000 Subject: [PATCH] * simplified handling of loading a reference into a register of a larger size in case of structured types o also fixes the logic for big endian git-svn-id: trunk@34029 - --- compiler/llvm/hlcgllvm.pas | 39 +++++++++++--------------------------- 1 file changed, 11 insertions(+), 28 deletions(-) diff --git a/compiler/llvm/hlcgllvm.pas b/compiler/llvm/hlcgllvm.pas index 8fe64e1261..ef056792e0 100644 --- a/compiler/llvm/hlcgllvm.pas +++ b/compiler/llvm/hlcgllvm.pas @@ -684,6 +684,7 @@ implementation procedure thlcgllvm.a_load_ref_reg(list: TAsmList; fromsize, tosize: tdef; const ref: treference; register: tregister); var tmpref, + tmpref2, sref: treference; hreg: tregister; tmpsize: tdef; @@ -700,34 +701,16 @@ implementation begin if fromsize.size