If we have to reset the calculation of the compact encoding, then also reset the

"saved register" index.
<rdar://problem/10430076>


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144350 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling 2011-11-11 00:59:14 +00:00
parent 4e89d97e3a
commit c739577d3c

View File

@ -518,6 +518,7 @@ uint32_t X86FrameLowering::getCompactUnwindEncoding(MachineFunction &MF) const {
CFAOffset = 0;
memset(SavedRegs, 0, sizeof(SavedRegs));
SavedRegIdx = 6;
InstrOffset += MoveInstrSize;
} else if (Opc == SubtractInstr) {
if (StackAdjust)