Fix detection of immutable upvalues.

This commit is contained in:
Mike Pall
2012-10-21 13:51:12 +02:00
parent 614e78d1f6
commit f6536c6696
2 changed files with 67 additions and 60 deletions

View File

@@ -41,9 +41,11 @@ typedef struct BCInsLine {
/* Info for local variables. Only used during bytecode generation. */
typedef struct VarInfo {
GCRef name; /* Local variable name. */
GCRef name; /* Local variable name or goto/label name. */
BCPos startpc; /* First point where the local variable is active. */
BCPos endpc; /* First point where the local variable is dead. */
uint8_t slot; /* Variable slot. */
uint8_t info; /* Variable/goto/label info. */
} VarInfo;
/* Lua lexer state. */