Skip to content

Commit 05677b7

Browse files
generatedunixname537391475639613facebook-github-bot
authored andcommitted
fbcode/cinderx/Jit/deopt.cpp
Reviewed By: jbower-fb Differential Revision: D83555213 fbshipit-source-id: bccdf9d2a3e5c70e0b0c00a860a4ae8f1ce41ec8
1 parent 6631695 commit 05677b7

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

cinderx/Jit/deopt.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -446,8 +446,8 @@ DeoptMetadata DeoptMetadata::fromInstr(const jit::hir::DeoptBase& instr) {
446446
[get_reg_idx](DeoptFrameMetadata& meta, hir::FrameState* fs) {
447447
size_t nlocalsplus = fs->localsplus.size();
448448
meta.localsplus.resize(nlocalsplus);
449-
for (size_t i = 0; i < nlocalsplus; ++i) {
450-
meta.localsplus[i] = get_reg_idx(fs->localsplus[i]);
449+
for (size_t j = 0; j < nlocalsplus; ++j) {
450+
meta.localsplus[j] = get_reg_idx(fs->localsplus[j]);
451451
}
452452
};
453453

@@ -482,13 +482,13 @@ DeoptMetadata DeoptMetadata::fromInstr(const jit::hir::DeoptBase& instr) {
482482
meta.frame_meta.resize(num_frames + 1); // +1 for caller
483483

484484
for (hir::FrameState* frame = fs; frame != nullptr; frame = frame->parent) {
485-
int i = num_frames--;
485+
int frame_idx = num_frames--;
486486
// Translate locals and cells
487-
populate_localsplus(meta.frame_meta.at(i), frame);
488-
populate_stack(meta.frame_meta.at(i), frame);
489-
meta.frame_meta.at(i).block_stack = frame->block_stack;
490-
meta.frame_meta.at(i).cause_instr_idx = frame->cur_instr_offs;
491-
meta.frame_meta.at(i).code = frame->code.get();
487+
populate_localsplus(meta.frame_meta.at(frame_idx), frame);
488+
populate_stack(meta.frame_meta.at(frame_idx), frame);
489+
meta.frame_meta.at(frame_idx).block_stack = frame->block_stack;
490+
meta.frame_meta.at(frame_idx).cause_instr_idx = frame->cur_instr_offs;
491+
meta.frame_meta.at(frame_idx).code = frame->code.get();
492492
}
493493

494494
if (hir::Register* guilty_reg = instr.guiltyReg()) {

0 commit comments

Comments
 (0)