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

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

llvm-svn: 144350
This commit is contained in:
Bill Wendling 2011-11-11 00:59:14 +00:00
parent a0e32fc8b6
commit 8df8204554
1 changed files with 1 additions and 0 deletions

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)