diff --git a/js/src/jit/MIRGraph.cpp b/js/src/jit/MIRGraph.cpp index 2b10ab083f4..8ab1fbc79d4 100644 --- a/js/src/jit/MIRGraph.cpp +++ b/js/src/jit/MIRGraph.cpp @@ -691,7 +691,9 @@ MBasicBlock::moveBefore(MInstruction *at, MInstruction *ins) // Insert into new block, which may be distinct. // Uses and operands are untouched. - at->block()->insertBefore(at, ins); + ins->setBlock(at->block()); + at->block()->instructions_.insertBefore(at, ins); + ins->setTrackedSite(at->trackedSite()); } static inline void