Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ldo.c
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ int luaD_pretailcall (lua_State *L, CallInfo *ci, StkId func,
// If this is a recursive call and we don't yet have a yk_location,
// create one now.
if (p->called && yk_location_is_null(p->yklocs[0])) {
p->yklocs[0] = yk_location_new();
p->yklocs[0] = yk_location_loop();
#if YKLUA_DEBUG_STRS
yk_location_set_debug_str(&p->yklocs[0], p->instdebugstrs[0]);
#endif
Expand Down Expand Up @@ -635,7 +635,7 @@ CallInfo *luaD_precall (lua_State *L, StkId func, int nresults) {
// If this is a recursive call and we don't yet have a yk_location,
// create one now.
if (p->called && yk_location_is_null(p->yklocs[0])) {
p->yklocs[0] = yk_location_new();
p->yklocs[0] = yk_location_loop();
#if YKLUA_DEBUG_STRS
yk_location_set_debug_str(&p->yklocs[0], p->instdebugstrs[0]);
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/lparser.c
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ void ykifyCode(lua_State *L, Proto *f, int num_insts) {
} else {
continue;
}
YkLocation loc = yk_location_new();
YkLocation loc = yk_location_loop();
#if YKLUA_DEBUG_STRS
char *loc_dstr = luaG_ykdebug_str(f, loc_pc);
yk_location_set_debug_str(&loc, loc_dstr);
Expand Down