diff options
author | Björn Gustavsson <[email protected]> | 2015-08-21 07:07:49 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-08-21 15:56:15 +0200 |
commit | 93c5e457faeccfd8ccbb1e6c587ad6df1f200408 (patch) | |
tree | 80d253c9f6feb43045ce5b42b2aa011702e9d201 /lib/compiler/src/beam_block.erl | |
parent | e92ad3c4d6358cecbba7643ccc14610957ad79ab (diff) | |
download | otp-93c5e457faeccfd8ccbb1e6c587ad6df1f200408.tar.gz otp-93c5e457faeccfd8ccbb1e6c587ad6df1f200408.tar.bz2 otp-93c5e457faeccfd8ccbb1e6c587ad6df1f200408.zip |
beam_validator: Don't allow x(1023) to be used
In 45f469ca0890, the BEAM loader started to use x(1023) as scratch
register for some instructions. Therefore we should not allow
x(1023) to be used in code emitted by the compiler.
Diffstat (limited to 'lib/compiler/src/beam_block.erl')
-rw-r--r-- | lib/compiler/src/beam_block.erl | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/compiler/src/beam_block.erl b/lib/compiler/src/beam_block.erl index 0b284299be..4e179daa0e 100644 --- a/lib/compiler/src/beam_block.erl +++ b/lib/compiler/src/beam_block.erl @@ -24,7 +24,6 @@ -export([module/2]). -import(lists, [mapfoldl/3,reverse/1,reverse/2,foldl/3,member/2]). --define(MAXREG, 1024). module({Mod,Exp,Attr,Fs0,Lc0}, _Opt) -> {Fs,Lc} = mapfoldl(fun function/2, Lc0, Fs0), |