aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2011-02-07 08:34:39 +0100
committerBjörn Gustavsson <[email protected]>2011-02-07 11:46:35 +0100
commite3d12b73ffcbc85d276414128482d7946bd0b861 (patch)
tree7fc8b5e9a065b0381b9f24b184b86f85ae83f777 /lib
parenta7ff13dc99a9e83e70ab44c011c184109346fcc3 (diff)
downloadotp-e3d12b73ffcbc85d276414128482d7946bd0b861.tar.gz
otp-e3d12b73ffcbc85d276414128482d7946bd0b861.tar.bz2
otp-e3d12b73ffcbc85d276414128482d7946bd0b861.zip
v3_codegen: Use the latest instance of St
By accident a previous instance of St is used, which is harmless in this case, but leads to worse quality of the generated code.
Diffstat (limited to 'lib')
-rw-r--r--lib/compiler/src/v3_codegen.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compiler/src/v3_codegen.erl b/lib/compiler/src/v3_codegen.erl
index 77da6c8d00..f24a46c5a9 100644
--- a/lib/compiler/src/v3_codegen.erl
+++ b/lib/compiler/src/v3_codegen.erl
@@ -235,7 +235,7 @@ match_cg(M, Rs, Le, Vdb, Bef, St0) ->
I = Le#l.i,
{Sis,Int0} = adjust_stack(Bef, I, I+1, Vdb),
{B,St1} = new_label(St0),
- {Mis,Int1,St2} = match_cg(M, St0#cg.ultimate_failure,
+ {Mis,Int1,St2} = match_cg(M, St1#cg.ultimate_failure,
Int0, St1#cg{break=B}),
%% Put return values in registers.
Reg = load_vars(Rs, Int1#sr.reg),