diff --git a/lib/Target/PowerPC/PPCRegisterInfo.cpp b/lib/Target/PowerPC/PPCRegisterInfo.cpp index 67f5285b7d2..bc282cd4730 100644 --- a/lib/Target/PowerPC/PPCRegisterInfo.cpp +++ b/lib/Target/PowerPC/PPCRegisterInfo.cpp @@ -407,7 +407,7 @@ void PPCRegisterInfo::emitPrologue(MachineFunction &MF) const { .addReg(PPC::R1).addReg(PPC::R1).addReg(PPC::R0); } - if (DebugInfo) { + if (DebugInfo && DebugInfo->hasInfo()) { std::vector &Moves = DebugInfo->getFrameMoves(); unsigned LabelID = DebugInfo->NextLabelID();