diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp @@ -984,7 +984,7 @@ addLiveIns(*SplitBB, LiveRegs); if (LIS) - LIS->insertMBBInMaps(SplitBB, &MI); + LIS->insertMBBInMaps(SplitBB, &*SplitPoint); return SplitBB; }