In the `buildglobal` function, after singlevaraux returns:
```
// buildglobal function
singlevaraux(fs, ls->envn, var, 1); /* get environment variable */
```
the resulting `var->k` for `ls->envn` is either VUPVAL or VLOCAL, and no control-flow jumps are involved.
* When var->k == VUPVAL, luaK_exp2anyregup has no effect.
* When var->k == VLOCAL, luaK_exp2anyregup also does nothing useful, because in the subsequent luaK_indexed, the register index is used directly via `t->u.var.ridx`:
```
// luaK_indexed function
t->u.ind.t = cast_byte((t->k == VLOCAL) ? t->u.var.ridx: t->
u.info);
```
The same observation applies to Lua 5.4 as well.