diff --git a/lib/CodeGen/TargetInstrInfo.cpp b/lib/CodeGen/TargetInstrInfo.cpp index 7c5092bfa2e..bdb1a6cefe5 100644 --- a/lib/CodeGen/TargetInstrInfo.cpp +++ b/lib/CodeGen/TargetInstrInfo.cpp @@ -425,7 +425,7 @@ static MachineInstr* foldPatchpoint(MachineFunction &MF, MIB.addImm(StackMaps::IndirectMemRefOp); MIB.addImm(SpillSize); MIB.addFrameIndex(FrameIndex); - MIB.addImm(0); + MIB.addImm(SpillOffset); } else MIB.addOperand(MO);