aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/beam_bool.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-08-21 07:07:49 +0200
committerBjörn Gustavsson <[email protected]>2015-08-21 15:56:15 +0200
commit93c5e457faeccfd8ccbb1e6c587ad6df1f200408 (patch)
tree80d253c9f6feb43045ce5b42b2aa011702e9d201 /lib/compiler/src/beam_bool.erl
parente92ad3c4d6358cecbba7643ccc14610957ad79ab (diff)
downloadotp-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_bool.erl')
-rw-r--r--lib/compiler/src/beam_bool.erl2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/compiler/src/beam_bool.erl b/lib/compiler/src/beam_bool.erl
index 14b6381230..c9e103eae9 100644
--- a/lib/compiler/src/beam_bool.erl
+++ b/lib/compiler/src/beam_bool.erl
@@ -25,8 +25,6 @@
-import(lists, [reverse/1,reverse/2,foldl/3,mapfoldl/3,map/2]).
--define(MAXREG, 1024).
-
-record(st,
{next, %Next label number.
ll %Live regs at labels.