aboutsummaryrefslogtreecommitdiffstats
path: root/lib/hipe/llvm
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2017-03-27 17:05:11 +0200
committerGitHub <[email protected]>2017-03-27 17:05:11 +0200
commit173cc4865cf0183242904283ea68626b5900ff08 (patch)
tree2ac8440d1e3881e61ef5c4a07e85c2704d722a96 /lib/hipe/llvm
parent236f2cecd0b0d8116c000187780f3981e6e9b388 (diff)
parent54d3e3ae0021f8277322ce51168829aa0dd67de1 (diff)
downloadotp-173cc4865cf0183242904283ea68626b5900ff08.tar.gz
otp-173cc4865cf0183242904283ea68626b5900ff08.tar.bz2
otp-173cc4865cf0183242904283ea68626b5900ff08.zip
Merge PR-1386 from kostis/hipe-const-alignment OTP-14302
hipe: Fix alignment of byte-sized constants
Diffstat (limited to 'lib/hipe/llvm')
-rw-r--r--lib/hipe/llvm/hipe_llvm_merge.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hipe/llvm/hipe_llvm_merge.erl b/lib/hipe/llvm/hipe_llvm_merge.erl
index 6e891ac3b0..58d862fbb2 100644
--- a/lib/hipe/llvm/hipe_llvm_merge.erl
+++ b/lib/hipe/llvm/hipe_llvm_merge.erl
@@ -13,7 +13,7 @@ finalize(CompiledCode, Closures, Exports) ->
Code = [{MFA, [], ConstTab}
|| {MFA, _, _ , ConstTab, _, _} <- CompiledCode1],
{ConstAlign, ConstSize, ConstMap, RefsFromConsts} =
- hipe_pack_constants:pack_constants(Code, ?ARCH_REGISTERS:alignment()),
+ hipe_pack_constants:pack_constants(Code),
%% Compute total code size separately as a sanity check for alignment
CodeSize = compute_code_size(CompiledCode1, 0),
%% io:format("Code Size (pre-computed): ~w~n", [CodeSize]),