aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/sys_core_inline.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2018-06-07 13:24:03 +0200
committerGitHub <[email protected]>2018-06-07 13:24:03 +0200
commit463c8e7fa08388f138fd9f07995d7c7a7580507e (patch)
treecb19a07659cf3034e3d902f455c5b2b7eae0d067 /lib/compiler/src/sys_core_inline.erl
parent9ee83cf9c8d5b322e5361ebc067c00222c0c56ae (diff)
parent7eb06ed5ac1687d38245db2e0aef2756cb43b1ae (diff)
downloadotp-463c8e7fa08388f138fd9f07995d7c7a7580507e.tar.gz
otp-463c8e7fa08388f138fd9f07995d7c7a7580507e.tar.bz2
otp-463c8e7fa08388f138fd9f07995d7c7a7580507e.zip
Merge pull request #1831 from bjorng/bjorn/compiler/fix-name-capture
Fix name capture problem in sys_core_fold OTP-15115
Diffstat (limited to 'lib/compiler/src/sys_core_inline.erl')
-rw-r--r--lib/compiler/src/sys_core_inline.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compiler/src/sys_core_inline.erl b/lib/compiler/src/sys_core_inline.erl
index 8c1f69d5de..eee3594922 100644
--- a/lib/compiler/src/sys_core_inline.erl
+++ b/lib/compiler/src/sys_core_inline.erl
@@ -143,7 +143,7 @@ inline_inline(#ifun{body=B,weight=Iw}=If, Is) ->
case find_inl(F, A, Is) of
#ifun{vars=Vs,body=B2,weight=W} when W < Iw ->
#c_let{vars=Vs,
- arg=core_lib:make_values(As),
+ arg=kill_id_anns(core_lib:make_values(As)),
body=kill_id_anns(B2)};
_Other -> Call
end;
@@ -160,7 +160,7 @@ inline_func(#fstat{def={Name,F0}}=Fstat, Is) ->
case find_inl(F, A, Is) of
#ifun{vars=Vs,body=B} ->
{#c_let{vars=Vs,
- arg=core_lib:make_values(As),
+ arg=kill_id_anns(core_lib:make_values(As)),
body=kill_id_anns(B)},
true}; %Have modified
_Other -> {Call,Mod}