Skip to content

Commit

Permalink
issue #100
Browse files Browse the repository at this point in the history
  • Loading branch information
Dibyendu Majumdar committed Oct 7, 2016
1 parent cd0150e commit 860904f
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/ravi_llvmcodegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1496,12 +1496,15 @@ bool RaviCodeGenerator::compile(lua_State *L, Proto *p,
int B = GETARG_B(i);
int C = GETARG_C(i);
/* key must be string */
if (ISK(C)) {
TValue *kv = k + INDEXK(C);
if (ttisshrstring(kv))
emit_SELF_SK(def, A, B, C, pc);
else
emit_SELF(def, A, B, C, pc);
// if (ISK(C)) {
// TValue *kv = k + INDEXK(C);
// if (ttisshrstring(kv))
// emit_SELF_SK(def, A, B, C, pc);
// else
// emit_SELF(def, A, B, C, pc);
// }
if (op == OP_RAVI_SELF_SK) {
emit_SELF_SK(def, A, B, C, pc);
}
else {
emit_SELF(def, A, B, C, pc);
Expand Down

0 comments on commit 860904f

Please sign in to comment.