forked from OSchip/llvm-project
X86: Fix another dereferenced end() iterator after r278532
llvm-svn: 278577
This commit is contained in:
parent
4a9b99ee92
commit
2d87ccfd58
|
@ -1959,7 +1959,7 @@ bool X86FrameLowering::restoreCalleeSavedRegisters(MachineBasicBlock &MBB,
|
|||
if (CSI.empty())
|
||||
return false;
|
||||
|
||||
if (isFuncletReturnInstr(*MI) && STI.isOSWindows()) {
|
||||
if (MI != MBB.end() && isFuncletReturnInstr(*MI) && STI.isOSWindows()) {
|
||||
// Don't restore CSRs in 32-bit EH funclets. Matches
|
||||
// spillCalleeSavedRegisters.
|
||||
if (STI.is32Bit())
|
||||
|
|
Loading…
Reference in New Issue