aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-11-27 16:41:43 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-11-27 16:41:43 -0200
commit9c41d9d1df1e19f7e657ce6c4671aee598175d24 (patch)
tree8d137a446feaa46da2542cfc3651b875db82faf6
parentad79eafe86a01a761874db14b789a41f4f7f77e6 (diff)
downloadlua-9c41d9d1df1e19f7e657ce6c4671aee598175d24.tar.gz
lua-9c41d9d1df1e19f7e657ce6c4671aee598175d24.tar.bz2
lua-9c41d9d1df1e19f7e657ce6c4671aee598175d24.zip
removed unneeded barrier ('from' must be white)
-rw-r--r--lparser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lparser.c b/lparser.c
index 56c73acc..7c652aa2 100644
--- a/lparser.c
+++ b/lparser.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lparser.c,v 2.144 2014/10/25 11:50:46 roberto Exp roberto $ 2** $Id: lparser.c,v 2.145 2014/11/02 19:19:04 roberto Exp roberto $
3** Lua Parser 3** Lua Parser
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -1632,7 +1632,7 @@ LClosure *luaY_parser (lua_State *L, ZIO *z, Mbuffer *buff,
1632 incr_top(L); 1632 incr_top(L);
1633 funcstate.f = cl->p = luaF_newproto(L); 1633 funcstate.f = cl->p = luaF_newproto(L);
1634 funcstate.f->source = luaS_new(L, name); /* create and anchor TString */ 1634 funcstate.f->source = luaS_new(L, name); /* create and anchor TString */
1635 luaC_objbarrier(L, funcstate.f, funcstate.f->source); 1635 lua_assert(iswhite(funcstate.f)); /* do not need barrier here */
1636 lexstate.buff = buff; 1636 lexstate.buff = buff;
1637 lexstate.dyd = dyd; 1637 lexstate.dyd = dyd;
1638 dyd->actvar.n = dyd->gt.n = dyd->label.n = 0; 1638 dyd->actvar.n = dyd->gt.n = dyd->label.n = 0;