forked from OSchip/llvm-project
Make sure we don't dereference the .end() of the container.
llvm-svn: 65211
This commit is contained in:
parent
44c0f2aa88
commit
81ebf9a578
|
@ -728,7 +728,8 @@ void X86RegisterInfo::emitPrologue(MachineFunction &MF) const {
|
|||
bool needsFrameMoves = (MMI && MMI->hasDebugInfo()) ||
|
||||
!Fn->doesNotThrow() ||
|
||||
UnwindTablesMandatory;
|
||||
DebugLoc DL = MBBI->getDebugLoc();
|
||||
DebugLoc DL = (MBBI != MBB.end()) ? MBBI->getDebugLoc() :
|
||||
DebugLoc::getUnknownLoc();
|
||||
|
||||
// Prepare for frame info.
|
||||
unsigned FrameLabelId = 0;
|
||||
|
|
Loading…
Reference in New Issue