summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-11-11 00:59:14 +0000
committerBill Wendling <isanbard@gmail.com>2011-11-11 00:59:14 +0000
commit8df82045544ba8b105be3e2a2b4b1235091296c0 (patch)
tree1eefb30f3d8824da68dc00cfce0813c417641ac2 /llvm/lib
parenta0e32fc8b68dfa63d50d13a342a9b7faf5650489 (diff)
downloadbcm5719-llvm-8df82045544ba8b105be3e2a2b4b1235091296c0.tar.gz
bcm5719-llvm-8df82045544ba8b105be3e2a2b4b1235091296c0.zip
If we have to reset the calculation of the compact encoding, then also reset the
"saved register" index. <rdar://problem/10430076> llvm-svn: 144350
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/X86FrameLowering.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86FrameLowering.cpp b/llvm/lib/Target/X86/X86FrameLowering.cpp
index ece90cb1ca7..819d24203b2 100644
--- a/llvm/lib/Target/X86/X86FrameLowering.cpp
+++ b/llvm/lib/Target/X86/X86FrameLowering.cpp
@@ -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)
OpenPOWER on IntegriCloud